mirror of git://git.sysmocom.de/ofono
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)
This commit is contained in:
parent
6058c800df
commit
79be5afdc1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue