summaryrefslogtreecommitdiffstats
path: root/src/stkutil.c
diff options
context:
space:
mode:
authorYang Gu <gyagp0@gmail.com>2010-07-09 22:52:08 +0800
committerDenis Kenzior <denkenz@gmail.com>2010-07-09 12:30:12 -0500
commit058d3d0cd4030960d5633fdd7348770ff5b02630 (patch)
tree4ae35b2bd1333e62b659fdd8968e7b18b9d74936 /src/stkutil.c
parenta72e092d191274b8c395a39c3900090ae4e16533 (diff)
downloadofono-058d3d0cd4030960d5633fdd7348770ff5b02630.tar.bz2
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.
Diffstat (limited to 'src/stkutil.c')
-rw-r--r--src/stkutil.c4
1 files changed, 3 insertions, 1 deletions
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);