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>
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)