diff options
author | David Robillard <d@drobilla.net> | 2018-11-25 16:00:09 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-12-31 11:37:48 -0500 |
commit | c0d818042379140c7d3d8b42aa3d1439d029f8df (patch) | |
tree | f1c53f9e76248f5f153e332c5b5c7d5c0267a963 /src/n3.c | |
parent | aa82276f036d5fadf02abb77e689e2aa384043e3 (diff) | |
download | serd-c0d818042379140c7d3d8b42aa3d1439d029f8df.tar.gz serd-c0d818042379140c7d3d8b42aa3d1439d029f8df.tar.bz2 serd-c0d818042379140c7d3d8b42aa3d1439d029f8df.zip |
Make reader return failure when no statement is read
Diffstat (limited to 'src/n3.c')
-rw-r--r-- | src/n3.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |