aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-07-11 11:39:01 -0400
committerDavid Robillard <d@drobilla.net>2022-01-13 23:05:18 -0500
commita414bf5a02a9894219d7945416916a3ce8ab903b (patch)
tree72bbf14c89ec796cb9d0a07dc0868621df02225f /src
parent932da1fc5335003d70caaeeae80f7ec2afb77b8e (diff)
downloadserd-a414bf5a02a9894219d7945416916a3ce8ab903b.tar.gz
serd-a414bf5a02a9894219d7945416916a3ce8ab903b.tar.bz2
serd-a414bf5a02a9894219d7945416916a3ce8ab903b.zip
Fix hang when skipping an error at EOF when lax parsing
Diffstat (limited to 'src')
-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);
}
}