diff options
| author | Petr Štetiar | 2020-12-08 16:41:44 +0000 |
|---|---|---|
| committer | Petr Štetiar | 2020-12-11 10:17:22 +0000 |
| commit | 158dd9dd289ca3fe1feb1c580ab2a8014d2ffb78 (patch) | |
| tree | d771d0ae9f1974710049a637a22707fc1ea7c732 | |
| parent | 66b4420856a7eb2c5a9f9a7acdb7e796ed807b17 (diff) | |
| download | uclient-158dd9dd289ca3fe1feb1c580ab2a8014d2ffb78.tar.gz | |
uclient: fix initialized but never read variable
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 <ynezz@true.cz>
| -rw-r--r-- | uclient.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |