summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/stkutil.c2
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;
}