---
 src/stkutil.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/stkutil.c b/src/stkutil.c
index d7493f1..8698f4f 100644
--- a/src/stkutil.c
+++ b/src/stkutil.c
@@ -565,8 +565,8 @@ static gboolean parse_dataobj_text(struct 
comprehension_tlv_iter *iter,
        const unsigned char *data;
        char *utf8;
 
-       if (len == 0) {
-               *text = g_try_malloc0(1);
+       if (len == 0 || len == 1) {
+               *text = NULL;
                return TRUE;
        }
 
-- 
1.7.0.4

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to