diff options
Diffstat (limited to 'src/n3.c')
-rw-r--r-- | src/n3.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1685,7 +1685,7 @@ read_n3_statement(SerdReader* const reader) static void skip_until(SerdReader* const reader, const uint8_t byte) { - for (int c = 0; (c = peek_byte(reader)) && c != byte;) { + for (int c = 0; (c = peek_byte(reader)) && c != byte && c != EOF;) { eat_byte_safe(reader, c); } } |