aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-15 14:46:05 +0200
committerDavid Robillard <d@drobilla.net>2020-08-15 22:52:05 +0200
commit907891c4f69a97299bef14bc64f417d009792795 (patch)
tree3109b75b87c74cabb3ea5d57ac0b57c32af51394 /src/n3.c
parentbdf35e8a26e3da860753f493040fbdba508b4a62 (diff)
downloadserd-907891c4f69a97299bef14bc64f417d009792795.tar.gz
serd-907891c4f69a97299bef14bc64f417d009792795.tar.bz2
serd-907891c4f69a97299bef14bc64f417d009792795.zip
Exploit push_byte return status
Diffstat (limited to 'src/n3.c')
-rw-r--r--src/n3.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/n3.c b/src/n3.c
index 29349e22..ceb0894d 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -253,8 +253,7 @@ read_character(SerdReader* reader, Ref dest, SerdNodeFlags* flags, uint8_t c)
default:
break;
}
- push_byte(reader, dest, c);
- return SERD_SUCCESS;
+ return push_byte(reader, dest, c);
}
return read_utf8_character(reader, dest, c);
}