aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-06-21 17:38:13 +0200
committerDavid Robillard <d@drobilla.net>2020-06-21 18:06:27 +0200
commitdfe59abeecba302a04a2d38a78a40fe356ec81a7 (patch)
tree72a907aafc0200890a9db2ac3d97e0e15f74478a /src/writer.c
parentf3e2c83e894ebc5ca42e7260215ef5d31e95ded6 (diff)
downloadserd-dfe59abeecba302a04a2d38a78a40fe356ec81a7.tar.gz
serd-dfe59abeecba302a04a2d38a78a40fe356ec81a7.tar.bz2
serd-dfe59abeecba302a04a2d38a78a40fe356ec81a7.zip
Cleanup: Fix uninitialised variables
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/writer.c b/src/writer.c
index 15ccd21c..aeac9b36 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -545,9 +545,10 @@ write_curie(SerdWriter* const writer,
const Field field,
const SerdStatementFlags flags)
{
- SerdChunk prefix;
- SerdChunk suffix;
- SerdStatus st;
+ SerdChunk prefix = {NULL, 0};
+ SerdChunk suffix = {NULL, 0};
+ SerdStatus st = SERD_SUCCESS;
+
switch (writer->syntax) {
case SERD_NTRIPLES:
case SERD_NQUADS: