summaryrefslogtreecommitdiff
path: root/gatchat
diff options
context:
space:
mode:
Diffstat (limited to 'gatchat')
-rw-r--r--gatchat/gatresult.c1
1 files changed, 1 insertions, 0 deletions
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;
}