diff options
author | David Robillard <d@drobilla.net> | 2018-11-25 16:00:09 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-06-21 18:12:04 +0200 |
commit | dd660f59cc7d1ca521c4485144bc2a1d66c8474e (patch) | |
tree | c404ee068c0aee01cea598571810738c6f277b75 /src | |
parent | b1e9e60444c50be83f37940dc9ca31acbaf0e686 (diff) | |
download | serd-dd660f59cc7d1ca521c4485144bc2a1d66c8474e.tar.gz serd-dd660f59cc7d1ca521c4485144bc2a1d66c8474e.tar.bz2 serd-dd660f59cc7d1ca521c4485144bc2a1d66c8474e.zip |
Make reader return failure when no statement is read
Diffstat (limited to 'src')
-rw-r--r-- | src/n3.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1424,7 +1424,7 @@ read_n3_statement(SerdReader* reader) read_ws_star(reader); switch (peek_byte(reader)) { case EOF: case '\0': - return reader->status; + return SERD_FAILURE; case '@': if (!fancy_syntax(reader)) { return r_err(reader, SERD_ERR_BAD_SYNTAX, |