mirror of git://git.sysmocom.de/ofono
Fix: avoid assigning to return structure on error
This commit is contained in:
parent
66557e0d2b
commit
b025179101
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue