aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-23 19:16:19 +0000
committerDavid Robillard <d@drobilla.net>2011-01-23 19:16:19 +0000
commit2c45a0e0d3e89946726c76f0e68b12048fb48785 (patch)
treeb9ed95c3bff1e13882dad32c5eb17f206bce38ad /src/writer.c
parenteaec2a93dcc9f7de5ed2d98fa3427c6f9c2ba878 (diff)
downloadserd-2c45a0e0d3e89946726c76f0e68b12048fb48785.tar.gz
serd-2c45a0e0d3e89946726c76f0e68b12048fb48785.tar.bz2
serd-2c45a0e0d3e89946726c76f0e68b12048fb48785.zip
Fix abbreviation.
git-svn-id: http://svn.drobilla.net/serd/trunk@49 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/writer.c b/src/writer.c
index 48f4adc1..eca334a8 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -345,10 +345,8 @@ serd_writer_end_anon(SerdWriter writer,
writer->sink("]", 1, writer->stream);
writer->context = *anon_stack_top(writer);
serd_stack_pop(&writer->anon_stack, sizeof(WriteContext));
- if (serd_stack_is_empty(&writer->anon_stack)) {
- // End of anonymous subject, reset context
- writer->context.subject = subject;
- writer->context.predicate = 0;
+ if (!writer->context.subject) { // End of anonymous subject
+ writer->context.subject = subject;
}
return true;
}