aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-06-21 17:38:12 +0200
committerDavid Robillard <d@drobilla.net>2020-06-21 18:06:26 +0200
commitf3e2c83e894ebc5ca42e7260215ef5d31e95ded6 (patch)
tree4d82066116edad56080181a1c1674bf545b09d6e
parentbc084355754ec7cec21e8f5fec9462c84805dda8 (diff)
downloadserd-f3e2c83e894ebc5ca42e7260215ef5d31e95ded6.tar.gz
serd-f3e2c83e894ebc5ca42e7260215ef5d31e95ded6.tar.bz2
serd-f3e2c83e894ebc5ca42e7260215ef5d31e95ded6.zip
Cleanup: Avoid declaring multiple variables on a single line
-rw-r--r--src/writer.c4
-rw-r--r--tests/serd_test.c3
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);