diff options
author | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2011-03-11 10:39:59 +0100 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-03-11 14:39:58 -0600 |
commit | 1a4299b8eb60a5ad9f08a8ff621e59a8e4a7c0f0 (patch) | |
tree | f34157ad2b61db1ee44bd127fb48c52890988989 /src/stkutil.c | |
parent | 4aa1e669bb86b9c481cc4ea3475ce901c86a9fa1 (diff) | |
download | ofono-1a4299b8eb60a5ad9f08a8ff621e59a8e4a7c0f0.tar.bz2 |
stk: fix issue with null data object
This will let the caller correctly detect NULL alpha id.
Diffstat (limited to 'src/stkutil.c')
-rw-r--r-- | src/stkutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stkutil.c b/src/stkutil.c index abd1c991..c64cb7aa 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; } |