aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-11-25 16:00:09 +0100
committerDavid Robillard <d@drobilla.net>2019-04-13 19:15:32 +0200
commit0e1e1ee57ddcb92b4963dc1e18639a3b9b664321 (patch)
treee538cbcebac8f7a6a5ecc2e0f9166e74d4e784e4 /src
parentbef0b11248839cc2c6feb7629d75daa7069db814 (diff)
downloadserd-0e1e1ee57ddcb92b4963dc1e18639a3b9b664321.tar.gz
serd-0e1e1ee57ddcb92b4963dc1e18639a3b9b664321.tar.bz2
serd-0e1e1ee57ddcb92b4963dc1e18639a3b9b664321.zip
Make reader return failure when no statement is read
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 46de68cf..cdb2d9a7 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -1402,7 +1402,7 @@ read_n3_statement(SerdReader* reader)
switch (peek_byte(reader)) {
case '\0':
reader->source.eof = true;
- return reader->status;
+ return SERD_FAILURE;
case '@':
if (!fancy_syntax(reader)) {
return r_err(reader, SERD_ERR_BAD_SYNTAX,