aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-11-25 16:00:09 +0100
committerDavid Robillard <d@drobilla.net>2018-12-31 11:37:48 -0500
commitc0d818042379140c7d3d8b42aa3d1439d029f8df (patch)
treef1c53f9e76248f5f153e332c5b5c7d5c0267a963
parentaa82276f036d5fadf02abb77e689e2aa384043e3 (diff)
downloadserd-c0d818042379140c7d3d8b42aa3d1439d029f8df.tar.gz
serd-c0d818042379140c7d3d8b42aa3d1439d029f8df.tar.bz2
serd-c0d818042379140c7d3d8b42aa3d1439d029f8df.zip
Make reader return failure when no statement is read
-rw-r--r--src/n3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/n3.c b/src/n3.c
index f748496e..0758f457 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -1411,7 +1411,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,