| commit | b087939748a00d74647ff0dcdeaa5a93c8ed9de5 | [log] [tgz] |
|---|---|---|
| author | Thiago Macieira <[email protected]> | Fri Dec 22 12:47:00 2017 |
| committer | Thiago Macieira <[email protected]> | Wed Dec 27 01:01:29 2017 |
| tree | d0a04b382ad90d30e7c59847ea29d9942b6586a5 | |
| parent | c3c7bf63ed2c481757af1086b5490db5fdda1ae1 [diff] |
Parser: set *len = 0 in the last string chunk
Probably a good idea anyway, plus solves a false positive warning:
src/compilersupport_p.h:192:34: error: ‘chunkLen’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
return __builtin_add_overflow(v1, v2, r);
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
src/cborparser.c:1163:16: note: ‘chunkLen’ was declared here
size_t chunkLen = chunkLen;
^~~~~~~~
Signed-off-by: Thiago Macieira <[email protected]>