diff options
author | Jeevaka Badrappan <jeevaka.badrappan@elektrobit.com> | 2011-01-04 14:42:01 -0800 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-01-05 10:04:15 -0600 |
commit | 2411a506e3c9ab728a69e74a8b5e6f1b71d9c869 (patch) | |
tree | 1f918c91c1964a1a9b3b93edca7f10a4c4aee4af /src | |
parent | fe57277233e6cb4d9fea47209365b9ed4bad2043 (diff) | |
download | ofono-2411a506e3c9ab728a69e74a8b5e6f1b71d9c869.tar.bz2 |
stkutil: Allocate for empty string in text dataobj
Diffstat (limited to 'src')
-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 ab33c7de..8aee8f7d 100644 --- a/src/stkutil.c +++ b/src/stkutil.c @@ -565,7 +565,7 @@ static gboolean parse_dataobj_text(struct comprehension_tlv_iter *iter, const unsigned char *data; char *utf8; - if (len == 0) { + if (len <= 1) { *text = g_try_malloc0(1); return TRUE; } |