From 158dd9dd289ca3fe1feb1c580ab2a8014d2ffb78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0tetiar?= Date: Tue, 8 Dec 2020 17:41:44 +0100 Subject: uclient: fix initialized but never read variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes following issue reported by clang-12 static analyzer: uclient.c:290:22: warning: Value stored to 'url' during its initialization is never read [deadcode.DeadStores] struct uclient_url *url = cl->url; ^~~ ~~~~~~~ Signed-off-by: Petr Štetiar --- uclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uclient.c b/uclient.c index 95e4585..a372d4a 100644 --- a/uclient.c +++ b/uclient.c @@ -287,7 +287,7 @@ int uclient_set_proxy_url(struct uclient *cl, const char *url_str, const char *a int uclient_set_url(struct uclient *cl, const char *url_str, const char *auth_str) { const struct uclient_backend *backend = cl->backend; - struct uclient_url *url = cl->url; + struct uclient_url *url; url = uclient_get_url(url_str, auth_str); if (!url) -- cgit v1.2.1