From d8ca3df926733984b9b5562ad1e75e5fc1f4e718 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 13 Nov 2019 16:46:07 -0600 Subject: [PATCH] gatchat: Make sure to set out length for omitted hexstrings --- gatchat/gatresult.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gatchat/gatresult.c b/gatchat/gatresult.c index 883b4105..1f9e2a68 100644 --- a/gatchat/gatresult.c +++ b/gatchat/gatresult.c @@ -231,6 +231,7 @@ gboolean g_at_result_iter_next_hexstring(GAtResultIter *iter, if (line[pos] == ',') { end = pos; iter->buf[pos] = '\0'; + *length = 0; goto out; }