aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-05 16:24:31 +0000
committerDavid Robillard <d@drobilla.net>2011-05-05 16:24:31 +0000
commitb490ec05c2ecb3e3027da554fa0f53c1073a6c6e (patch)
tree19f98e7ca906ec7a5a90e2341eb2a0b3b1ec7c99 /src/writer.c
parent30859b062f60fd486813de43a616686b3c41a57c (diff)
downloadserd-b490ec05c2ecb3e3027da554fa0f53c1073a6c6e.tar.gz
serd-b490ec05c2ecb3e3027da554fa0f53c1073a6c6e.tar.bz2
serd-b490ec05c2ecb3e3027da554fa0f53c1073a6c6e.zip
Tidy.
git-svn-id: http://svn.drobilla.net/serd/trunk@161 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/writer.c b/src/writer.c
index ce9a5e1e..122cde01 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -169,7 +169,7 @@ reset_context(SerdWriter* writer)
serd_node_free(&writer->context.predicate);
writer->context = WRITE_CONTEXT_NULL;
}
-
+
static bool
write_node(SerdWriter* writer,
const SerdNode* node,
@@ -357,7 +357,7 @@ serd_writer_write_statement(SerdWriter* writer,
write_node(writer, object, object_datatype, object_lang);
}
- const WriteContext new_context = { graph ? serd_node_copy(graph) : SERD_NODE_NULL,
+ const WriteContext new_context = { serd_node_copy(graph),
serd_node_copy(subject),
serd_node_copy(predicate) };
reset_context(writer);