diff options
Diffstat (limited to 'src/reader.c')
-rw-r--r-- | src/reader.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/reader.c b/src/reader.c index f106c87c..36f37bdb 100644 --- a/src/reader.c +++ b/src/reader.c @@ -140,7 +140,10 @@ eat_byte_safe(SerdReader* reader, const uint8_t byte) default: ++reader->cur.col; } - reader->status = serd_byte_source_advance(&reader->source); + const SerdStatus st = serd_byte_source_advance(&reader->source); + if (st) { + reader->status = st; + } return byte; } |