aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
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 /src/writer.c
parentbc084355754ec7cec21e8f5fec9462c84805dda8 (diff)
downloadserd-f3e2c83e894ebc5ca42e7260215ef5d31e95ded6.tar.gz
serd-f3e2c83e894ebc5ca42e7260215ef5d31e95ded6.tar.bz2
serd-f3e2c83e894ebc5ca42e7260215ef5d31e95ded6.zip
Cleanup: Avoid declaring multiple variables on a single line
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c4
1 files changed, 3 insertions, 1 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);