From 058d3d0cd4030960d5633fdd7348770ff5b02630 Mon Sep 17 00:00:00 2001 From: Yang Gu Date: Fri, 9 Jul 2010 22:52:08 +0800 Subject: Interpret "" Alpha Id as empty data object There needs to be a way to distinguish between no alphaid and "empty data object" because on some occasions they have different meanings. In the Call Control envelope, no Alpha Identifier means the terminal can inform the user about the call being modified by SIM while empty data object means no hint should be given. --- src/stkutil.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/stkutil.c') diff --git a/src/stkutil.c b/src/stkutil.c index 94ff182f..c45f9854 100644 --- a/src/stkutil.c +++ b/src/stkutil.c @@ -297,8 +297,10 @@ static gboolean parse_dataobj_alpha_id(struct comprehension_tlv_iter *iter, char *utf8; len = comprehension_tlv_iter_get_length(iter); - if (len == 0) + if (len == 0) { + *alpha_id = g_try_malloc0(1); return TRUE; + } data = comprehension_tlv_iter_get_data(iter); utf8 = sim_string_to_utf8(data, len); -- cgit v1.2.3