stk: fix issue with null data object

This will let the caller correctly detect NULL alpha id.
This commit is contained in:
Andrzej Zaborowski 2011-03-11 10:39:59 +01:00 committed by Denis Kenzior
parent 4aa1e669bb
commit 1a4299b8eb
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}