aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/n3.c')
-rw-r--r--src/n3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/n3.c b/src/n3.c
index ff142976..3b12dfec 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -866,11 +866,11 @@ read_collection(SerdReader* const reader,
return SERD_ERR_OVERFLOW;
}
- if (ctx.subject) {
- // subject predicate _:head
+ if (ctx.subject) { // Reading a collection object
*ctx.flags |= (end ? 0 : SERD_LIST_O);
TRY(st, emit_statement(reader, ctx, *dest));
- } else {
+ *ctx.flags &= ~((unsigned)SERD_LIST_O);
+ } else { // Reading a collection subject
*ctx.flags |= (end ? 0 : SERD_LIST_S);
}