Skip to content
Snippets Groups Projects
Commit 08c7157d authored by Timo Teräs's avatar Timo Teräs
Browse files

apk: fix variable after switch label

parent 5e5d2008
No related branches found
No related tags found
No related merge requests found
......@@ -476,10 +476,12 @@ static int remove_empty_strings(int count, char **args)
static void fetch_redirect(int code, const struct url *cur, const struct url *next)
{
char *url;
switch (code) {
case 301: // Moved Permanently
case 308: // Permanent Redirect
char *url = fetchStringifyURL(next);
url = fetchStringifyURL(next);
apk_warn(&ctx.out, "Permanently redirected to %s", url);
free(url);
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment