aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/n3.c')
-rw-r--r--src/n3.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/n3.c b/src/n3.c
index bffc423b..09e6792b 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -997,7 +997,9 @@ read_BLANK_NODE_LABEL(SerdReader* const reader,
bool* const ate_dot)
{
eat_byte_safe(reader, '_');
- eat_byte_check(reader, ':');
+ if (!eat_byte_check(reader, ':')) {
+ return SERD_ERR_BAD_SYNTAX;
+ }
const Ref ref = *dest =
push_node(reader,