diff options
author | David Robillard <d@drobilla.net> | 2018-12-30 17:44:04 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-12-30 17:44:16 -0500 |
commit | 276ec06bcaa2b1a5d22a8607dae6bb42d46813db (patch) | |
tree | b2665c500b6d8ec1a8d69417ebd30256913d8c9f /src | |
parent | c123a1eb02829d4c21a771cb9358c60c50c50213 (diff) | |
download | serd-276ec06bcaa2b1a5d22a8607dae6bb42d46813db.tar.gz serd-276ec06bcaa2b1a5d22a8607dae6bb42d46813db.tar.bz2 serd-276ec06bcaa2b1a5d22a8607dae6bb42d46813db.zip |
Fix potential use of uninitialised data
Diffstat (limited to 'src')
-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); |