diff options
-rw-r--r-- | src/writer.c | 4 | ||||
-rw-r--r-- | tests/serd_test.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/writer.c b/src/writer.c index 61b6b825..15ccd21c 100644 --- a/src/writer.c +++ b/src/writer.c @@ -512,7 +512,9 @@ write_uri_node(SerdWriter* const writer, write_sep(writer, SEP_URI_BEGIN); if (writer->style & SERD_STYLE_RESOLVED) { - SerdURI in_base_uri, uri, abs_uri; + SerdURI in_base_uri; + SerdURI uri; + SerdURI abs_uri; serd_env_get_base_uri(writer->env, &in_base_uri); serd_uri_parse(node->buf, &uri); serd_uri_resolve(&uri, &in_base_uri, &abs_uri); diff --git a/tests/serd_test.c b/tests/serd_test.c index 6fa4849b..95e5505e 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -462,7 +462,8 @@ test_env(void) assert(serd_env_set_base_uri(env, &SERD_NODE_NULL)); assert(serd_node_equals(serd_env_get_base_uri(env, NULL), &SERD_NODE_NULL)); - SerdChunk prefix, suffix; + SerdChunk prefix; + SerdChunk suffix; assert(serd_env_expand(env, &b, &prefix, &suffix)); SerdNode xnode = serd_env_expand_node(env, &SERD_NODE_NULL); |