From 065a062cd210ce9a86e57d6e751ea591dd984147 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 25 Nov 2018 16:00:09 +0100 Subject: Make reader return failure when no statement is read --- src/n3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/n3.c') 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, -- cgit v1.2.1