aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reader.c')
-rw-r--r--src/reader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reader.c b/src/reader.c
index 333aabde..7e9bb3d4 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -992,13 +992,13 @@ static bool
read_blank(SerdReader* reader, ReadContext ctx, bool subject, Ref* dest)
{
const SerdStatementFlags old_flags = *ctx.flags;
+ bool empty;
switch (peek_byte(reader)) {
case '_':
return (*dest = read_nodeID(reader));
case '[':
eat_byte_safe(reader, '[');
- const bool empty = peek_delim(reader, ']');
- if (empty) {
+ if ((empty = peek_delim(reader, ']'))) {
*ctx.flags |= (subject) ? SERD_EMPTY_S : SERD_EMPTY_O;
} else {
*ctx.flags |= (subject) ? SERD_ANON_S_BEGIN : SERD_ANON_O_BEGIN;