aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/reader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reader.c b/src/reader.c
index 67f53513..e08956ef 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -1025,7 +1025,7 @@ blank_id(SerdReader* reader)
static bool
read_blank(SerdReader* reader, ReadContext ctx, bool subject, Node* dest)
{
- const bool was_anon_subject = (*ctx.flags | SERD_ANON_CONT);
+ const bool was_anon_subject = subject && (*ctx.flags | SERD_ANON_CONT);
switch (peek_byte(reader)) {
case '_':
*dest = make_node(SERD_BLANK, read_nodeID(reader));
@@ -1062,7 +1062,7 @@ read_blank(SerdReader* reader, ReadContext ctx, bool subject, Node* dest)
const SerdNode end = public_node(reader, dest);
reader->end_sink(reader->handle, &end);
}
- if (subject && !was_anon_subject) {
+ if (!was_anon_subject) {
*ctx.flags &= ~SERD_ANON_CONT;
}
return true;