gatchat: Make sure to set out length for omitted hexstrings

This commit is contained in:
Denis Kenzior 2019-11-13 16:46:07 -06:00
parent 66bc5b3fd4
commit d8ca3df926
1 changed files with 1 additions and 0 deletions

View File

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