aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-12-30 17:44:04 -0500
committerDavid Robillard <d@drobilla.net>2019-01-05 18:55:50 +0100
commitbb9d51a0f607ebe8d3802f7880ef588420cb9394 (patch)
treeb2665c500b6d8ec1a8d69417ebd30256913d8c9f /src/n3.c
parent0da82a3ff9dd295b1ebc69757d3f2342736a06bd (diff)
downloadserd-bb9d51a0f607ebe8d3802f7880ef588420cb9394.tar.gz
serd-bb9d51a0f607ebe8d3802f7880ef588420cb9394.tar.bz2
serd-bb9d51a0f607ebe8d3802f7880ef588420cb9394.zip
Fix potential use of uninitialised data
Diffstat (limited to 'src/n3.c')
-rw-r--r--src/n3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/n3.c b/src/n3.c
index a4886d28..3e0db7e8 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -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);