diff options
author | David Robillard <d@drobilla.net> | 2018-12-26 20:08:31 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-06-21 18:12:04 +0200 |
commit | 8dec5c9b7663478c89e58dd64e47422d60a92ecb (patch) | |
tree | 10f21e7767c6f0237fbd4dcf0c0fc42ada653434 /src/env.c | |
parent | 9a4ac7d20362d8e67551dd8a93f70b741a043877 (diff) | |
download | serd-8dec5c9b7663478c89e58dd64e47422d60a92ecb.tar.gz serd-8dec5c9b7663478c89e58dd64e47422d60a92ecb.tar.bz2 serd-8dec5c9b7663478c89e58dd64e47422d60a92ecb.zip |
Ensure serd_new_resolved_uri returns an absolute URI or NULL
Diffstat (limited to 'src/env.c')
-rw-r--r-- | src/env.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -119,11 +119,10 @@ serd_env_set_base_uri(SerdEnv* env, SerdNode* base_uri_node = serd_new_resolved_uri_i( serd_node_get_string(uri), &env->base_uri); - SerdURI base_uri; - serd_uri_parse(serd_node_get_string(base_uri_node), &base_uri); - if (base_uri_node) { // Replace the current base URI + SerdURI base_uri; + serd_uri_parse(serd_node_get_string(base_uri_node), &base_uri); serd_node_free(env->base_uri_node); env->base_uri_node = base_uri_node; env->base_uri = base_uri; |