diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-12-10 12:13:06 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-12-10 12:13:06 -0600 |
commit | 79be5afdc14f12e2e36771473c5b3ee6a6c23ca3 (patch) | |
tree | 1a389c90832ebdd42c012c67786084a6f210cfa9 /src/stkutil.c | |
parent | 6058c800df1d1cedeed2410cbf42c2776e1555a2 (diff) | |
download | ofono-79be5afdc14f12e2e36771473c5b3ee6a6c23ca3.tar.bz2 |
stkutil: Allow empty strings in for Text dataobj
Explicitly allow length = 1 (DCS) followed by zero characters. This
seems to be explicitly allowed by the test specification (namely Get
Input 1.9.1A)
Diffstat (limited to 'src/stkutil.c')
-rw-r--r-- | src/stkutil.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/stkutil.c b/src/stkutil.c index 63da0415..d7493f10 100644 --- a/src/stkutil.c +++ b/src/stkutil.c @@ -565,10 +565,6 @@ static gboolean parse_dataobj_text(struct comprehension_tlv_iter *iter, const unsigned char *data; char *utf8; - /* DCS followed by some text, cannot be 1 */ - if (len == 1) - return FALSE; - if (len == 0) { *text = g_try_malloc0(1); return TRUE; |