stkutil: Allocate for empty string in text dataobj

This commit is contained in:
Jeevaka Badrappan 2011-01-04 14:42:01 -08:00 committed by Denis Kenzior
parent fe57277233
commit 2411a506e3
1 changed files with 1 additions and 1 deletions

View File

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