aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/n3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/n3.c b/src/n3.c
index 47ae2d32..373edbe2 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -1670,7 +1670,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 != EOF && c != byte;) {
eat_byte_safe(reader, c);
}
}