mirror of git://git.sysmocom.de/ofono
stk: fix issue with null data object
This will let the caller correctly detect NULL alpha id.
This commit is contained in:
parent
4aa1e669bb
commit
1a4299b8eb
|
@ -309,7 +309,7 @@ static gboolean parse_dataobj_alpha_id(struct comprehension_tlv_iter *iter,
|
|||
|
||||
len = comprehension_tlv_iter_get_length(iter);
|
||||
if (len == 0) {
|
||||
*alpha_id = g_try_malloc0(1);
|
||||
*alpha_id = NULL;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue