From 0e1e1ee57ddcb92b4963dc1e18639a3b9b664321 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(-) 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, -- cgit v1.2.1