aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/writer.c b/src/writer.c
index 8010dba3..9ba02489 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -368,7 +368,7 @@ serd_writer_new(SerdSyntax syntax,
writer->syntax = syntax;
writer->style = style;
writer->env = env;
- writer->base_uri = *base_uri;
+ writer->base_uri = base_uri ? *base_uri : SERD_URI_NULL;
writer->anon_stack = serd_stack_new(sizeof(WriteContext));
writer->sink = sink;
writer->stream = stream;