diff options
author | David Robillard <d@drobilla.net> | 2019-03-10 18:01:04 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-27 13:13:58 +0100 |
commit | c5284b46fddd76a9c45f6dfe41ee541b04451ace (patch) | |
tree | 4cf6248899fed56379bb4c7280ad053b3257d514 | |
parent | b01df0517bf1abd78ec3a13e4599c325cc2e1fd2 (diff) | |
download | serd-c5284b46fddd76a9c45f6dfe41ee541b04451ace.tar.gz serd-c5284b46fddd76a9c45f6dfe41ee541b04451ace.tar.bz2 serd-c5284b46fddd76a9c45f6dfe41ee541b04451ace.zip |
Tolerate lack of predicate when context is popped
-rw-r--r-- | src/writer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/writer.c b/src/writer.c index a1fcbddd..64b9b9d1 100644 --- a/src/writer.c +++ b/src/writer.c @@ -923,7 +923,8 @@ serd_writer_end_anon(SerdWriter* writer, write_sep(writer, writer->context.flags, SEP_ANON_END); pop_context(writer); - if (serd_node_equals(node, writer->context.subject)) { + if (writer->context.predicate && + serd_node_equals(node, writer->context.subject)) { // Now-finished anonymous node is the new subject with no other context memset(writer->context.predicate, 0, sizeof(SerdNode)); } |