This will let the caller correctly detect NULL alpha id.
---
src/stkutil.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/stkutil.c b/src/stkutil.c
index abd1c99..c64cb7a 100644
--- a/src/stkutil.c
+++ b/src/stkutil.c
@@ -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;
}
--
1.7.1.86.g0e460.dirty
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono