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:
Denis Kenzior 2010-12-10 12:13:06 -06:00
parent 6058c800df
commit 79be5afdc1
1 changed files with 0 additions and 4 deletions

View File

@ -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;