]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
fix check of empty description 227/head
authorSergey Linnik <linniksa@gmail.com>
Tue, 15 Jan 2013 22:10:55 +0000 (02:10 +0400)
committerSergey Linnik <linniksa@gmail.com>
Tue, 15 Jan 2013 22:10:55 +0000 (02:10 +0400)
this is need because _eit_get_string_with_len function return length of
string with size-byte.

src/epggrab/module/eit.c

index 103464fef7398c579e392561d775eba40510ef34..0ca20563a510ec4c601a0e3596ffcacba66211e3 100644 (file)
@@ -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);
   }