aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/env.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/env.c b/src/env.c
index b963bc75..ecefb005 100644
--- a/src/env.c
+++ b/src/env.c
@@ -65,7 +65,9 @@ const SerdNode*
serd_env_get_base_uri(const SerdEnv* env,
SerdURI* out)
{
- *out = env->base_uri;
+ if (out) {
+ *out = env->base_uri;
+ }
return &env->base_uri_node;
}