aboutsummaryrefslogtreecommitdiffstats
path: root/src/env.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-18 15:38:40 +0000
committerDavid Robillard <d@drobilla.net>2012-03-18 15:38:40 +0000
commit90830a30aa7e16b4ebb3a249f1456da174b1eca3 (patch)
treee5bc9f33d9b0f032e07a46863b80951ba9748cf8 /src/env.c
parentd14a7d113628578b6ed065b08db6c92536f550bd (diff)
downloadserd-90830a30aa7e16b4ebb3a249f1456da174b1eca3.tar.gz
serd-90830a30aa7e16b4ebb3a249f1456da174b1eca3.tar.bz2
serd-90830a30aa7e16b4ebb3a249f1456da174b1eca3.zip
Tolerate NULL URI parameter in serd_env_get_base_uri().
git-svn-id: http://svn.drobilla.net/serd/trunk@337 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/env.c')
-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;
}