From bb9d51a0f607ebe8d3802f7880ef588420cb9394 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 30 Dec 2018 17:44:04 -0500 Subject: Fix potential use of uninitialised data --- src/n3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.1