stkutil: alpha id objects can be NULL

ETSI 102.223 doesn't mention that alpha id objects can be NULL, however
such objects exist in the 102.384 test specification.
This commit is contained in:
Yang Gu 2010-05-13 18:48:19 +08:00 committed by Denis Kenzior
parent 353d955dea
commit edcd03e570
1 changed files with 2 additions and 2 deletions

View File

@ -281,8 +281,8 @@ static gboolean parse_dataobj_alpha_id(struct comprehension_tlv_iter *iter,
char *utf8;
len = comprehension_tlv_iter_get_length(iter);
if (len < 1)
return FALSE;
if (len == 0)
return TRUE;
data = comprehension_tlv_iter_get_data(iter);
utf8 = sim_string_to_utf8(data, len);