aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-11-25 16:00:09 +0100
committerDavid Robillard <d@drobilla.net>2018-11-25 22:12:47 +0100
commit065a062cd210ce9a86e57d6e751ea591dd984147 (patch)
tree0996e1a7c4c0a29c90a3cdf609fed835368246da
parent904ef9ccffbc86f5514e028732737a48a149bd59 (diff)
downloadserd-065a062cd210ce9a86e57d6e751ea591dd984147.tar.gz
serd-065a062cd210ce9a86e57d6e751ea591dd984147.tar.bz2
serd-065a062cd210ce9a86e57d6e751ea591dd984147.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 861a59c0..bce9e01d 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -1418,7 +1418,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,