fix check of empty description

this is need because _eit_get_string_with_len function return length of
string with size-byte.
This commit is contained in:
Sergey Linnik 2013-01-16 02:10:55 +04:00
parent c1312e160a
commit d9128b146d

View 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);
}