summaryrefslogtreecommitdiffstats
path: root/src/stkutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stkutil.c')
-rw-r--r--src/stkutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stkutil.c b/src/stkutil.c
index bdc7ae5d..a5c3ac06 100644
--- a/src/stkutil.c
+++ b/src/stkutil.c
@@ -206,12 +206,12 @@ static gboolean parse_dataobj_item(struct comprehension_tlv_iter *iter,
if (data[0] == 0)
return FALSE;
- item->id = data[0];
utf8 = sim_string_to_utf8(data + 1, len - 1);
if (utf8 == NULL)
return FALSE;
+ item->id = data[0];
item->text = utf8;
return TRUE;