diff options
author | Denis Kenzior <denkenz@gmail.com> | 2019-11-13 16:46:07 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2019-11-13 17:01:15 -0600 |
commit | d8ca3df926733984b9b5562ad1e75e5fc1f4e718 (patch) | |
tree | c06a527b522d59974d8df6fdddc99b0228234c02 /gatchat | |
parent | 66bc5b3fd4d319ea3bb5e236b628c54ff8a48b3b (diff) | |
download | ofono-d8ca3df926733984b9b5562ad1e75e5fc1f4e718.tar.gz |
gatchat: Make sure to set out length for omitted hexstrings
Diffstat (limited to 'gatchat')
-rw-r--r-- | gatchat/gatresult.c | 1 |
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; } |