From: Sergey Linnik Date: Tue, 15 Jan 2013 22:10:55 +0000 (+0400) Subject: fix check of empty description X-Git-Tag: v3.5~84^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9128b146df027697f9486a962e73c631d1db1b3;p=thirdparty%2Ftvheadend.git fix check of empty description this is need because _eit_get_string_with_len function return length of string with size-byte. --- diff --git a/src/epggrab/module/eit.c b/src/epggrab/module/eit.c index 103464fef..0ca20563a 100644 --- a/src/epggrab/module/eit.c +++ b/src/epggrab/module/eit.c @@ -330,7 +330,7 @@ static int _eit_desc_ext_event if ( _eit_get_string_with_len(mod, buf, sizeof(buf), ptr, len, - ev->default_charset) > 0 ) { + ev->default_charset) > 1 ) { if (!ev->desc) ev->desc = lang_str_create(); lang_str_append(ev->desc, buf, lang); }