diff options
author | David Robillard <d@drobilla.net> | 2018-12-30 17:44:04 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-01-05 18:55:50 +0100 |
commit | bb9d51a0f607ebe8d3802f7880ef588420cb9394 (patch) | |
tree | b2665c500b6d8ec1a8d69417ebd30256913d8c9f | |
parent | 0da82a3ff9dd295b1ebc69757d3f2342736a06bd (diff) | |
download | serd-bb9d51a0f607ebe8d3802f7880ef588420cb9394.tar.gz serd-bb9d51a0f607ebe8d3802f7880ef588420cb9394.tar.bz2 serd-bb9d51a0f607ebe8d3802f7880ef588420cb9394.zip |
Fix potential use of uninitialised data
-rw-r--r-- | src/n3.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -213,7 +213,7 @@ static SerdStatus read_utf8_code(SerdReader* reader, Ref dest, uint32_t* code, uint8_t c) { uint32_t size; - uint8_t bytes[4]; + uint8_t bytes[4] = { 0, 0, 0, 0 }; SerdStatus st = read_utf8_bytes(reader, bytes, &size, c); if (st) { push_bytes(reader, dest, replacement_char, 3); |