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