aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/writer.c b/src/writer.c
index b58d4f3e..48f4adc1 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -258,7 +258,9 @@ serd_writer_write_statement(
writer->sink(" ", 1, writer->stream);
write_node(writer, predicate_type, predicate, NULL, NULL);
writer->sink(" ", 1, writer->stream);
- write_node(writer, object_type, object, object_datatype, object_lang);
+ if (!write_node(writer, object_type, object, object_datatype, object_lang)) {
+ return false;
+ }
writer->sink(" .\n", 3, writer->stream);
return true;
case SERD_TURTLE: