mirror of git://git.sysmocom.de/ofono
gatchat: Make sure to set out length for omitted hexstrings
This commit is contained in:
parent
66bc5b3fd4
commit
d8ca3df926
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue