aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-09-23 15:57:43 +0200
committerDavid Robillard <d@drobilla.net>2017-09-23 15:59:23 +0200
commitf6655b26326c497dc99b68afbe16f55c40a128e8 (patch)
tree2a952476a911ee21d6c7574c0725d22f00fe2392
parent65f7c3f192622ad603e1e7b3af1a57b813586334 (diff)
downloadserd-f6655b26326c497dc99b68afbe16f55c40a128e8.tar.gz
serd-f6655b26326c497dc99b68afbe16f55c40a128e8.tar.bz2
serd-f6655b26326c497dc99b68afbe16f55c40a128e8.zip
Fix potential use of uninitialized variable
-rw-r--r--src/reader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reader.c b/src/reader.c
index d74a6fc3..455aa873 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -720,8 +720,8 @@ read_PLX(SerdReader* reader, Ref dest)
static SerdStatus
read_PN_LOCAL(SerdReader* reader, Ref dest, bool* ate_dot)
{
- uint8_t c = peek_byte(reader);
- SerdStatus st;
+ uint8_t c = peek_byte(reader);
+ SerdStatus st = SERD_SUCCESS;
switch (c) {
case '0': case '1': case '2': case '3': case '4': case '5':
case '6': case '7': case '8': case '9': case ':': case '_':