Fix: avoid assigning to return structure on error

This commit is contained in:
Denis Kenzior 2010-03-16 15:26:53 -05:00
parent 66557e0d2b
commit b025179101
1 changed files with 1 additions and 1 deletions

View File

@ -206,12 +206,12 @@ static gboolean parse_dataobj_item(struct comprehension_tlv_iter *iter,
if (data[0] == 0)
return FALSE;
item->id = data[0];
utf8 = sim_string_to_utf8(data + 1, len - 1);
if (utf8 == NULL)
return FALSE;
item->id = data[0];
item->text = utf8;
return TRUE;