summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-metalink.c
diff options
context:
space:
mode:
authorJonathan Lebon <jlebon@redhat.com>2016-04-08 12:18:17 -0400
committerColin Walters (automation) <walters+githubbot@verbum.org>2016-04-08 18:43:18 +0000
commit41661e47e18856a9886fa37bdb83c8765ed057be (patch)
treeaa9e884a15f134b07224bbbf147475c748dca0da /src/libostree/ostree-metalink.c
parentddda8e5b8bb1ec21b2a4c5340dc36362c59c1271 (diff)
downloadostree-41661e47e18856a9886fa37bdb83c8765ed057be.tar.gz
small cleanups
- Revert 'cannot' --> 'can not' (it's the exception!) - Remove duplicate function - Squelch compiler warnings Closes: #248 Approved by: cgwalters
Diffstat (limited to 'src/libostree/ostree-metalink.c')
-rw-r--r--src/libostree/ostree-metalink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libostree/ostree-metalink.c b/src/libostree/ostree-metalink.c
index 5ca69e69..ad3a6a2a 100644
--- a/src/libostree/ostree-metalink.c
+++ b/src/libostree/ostree-metalink.c
@@ -491,7 +491,7 @@ try_metalink_targets (OstreeMetalinkRequest *self,
GError **error)
{
gboolean ret = FALSE;
- SoupURI *target_uri;
+ SoupURI *target_uri = NULL;
if (!self->found_a_file_element)
{
@@ -564,7 +564,7 @@ try_metalink_targets (OstreeMetalinkRequest *self,
self->urls->len, self->last_metalink_error);
goto out;
}
-
+
ret = TRUE;
if (out_target_uri)
*out_target_uri = soup_uri_copy (target_uri);