aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-12-30 17:44:04 -0500
committerDavid Robillard <d@drobilla.net>2018-12-30 17:44:16 -0500
commit276ec06bcaa2b1a5d22a8607dae6bb42d46813db (patch)
treeb2665c500b6d8ec1a8d69417ebd30256913d8c9f /src
parentc123a1eb02829d4c21a771cb9358c60c50c50213 (diff)
downloadserd-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.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);