diff options
author | David Robillard <d@drobilla.net> | 2018-11-25 16:00:09 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-13 19:15:32 +0200 |
commit | 0e1e1ee57ddcb92b4963dc1e18639a3b9b664321 (patch) | |
tree | e538cbcebac8f7a6a5ecc2e0f9166e74d4e784e4 | |
parent | bef0b11248839cc2c6feb7629d75daa7069db814 (diff) | |
download | serd-0e1e1ee57ddcb92b4963dc1e18639a3b9b664321.tar.gz serd-0e1e1ee57ddcb92b4963dc1e18639a3b9b664321.tar.bz2 serd-0e1e1ee57ddcb92b4963dc1e18639a3b9b664321.zip |
Make reader return failure when no statement is read
-rw-r--r-- | src/n3.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |