libfetch: Remove an unused variable.
authorSascha Wildner <saw@online.de>
Sat, 19 Jan 2013 23:01:05 +0000 (00:01 +0100)
committerSascha Wildner <saw@online.de>
Sat, 19 Jan 2013 23:08:37 +0000 (00:08 +0100)
lib/libfetch/http.c

index c757f89..8f18764 100644 (file)
@@ -1325,7 +1325,6 @@ static int
 http_authorize(conn_t *conn, const char *hdr, http_auth_challenges_t *cs,
               http_auth_params_t *parms, struct url *url)
 {
-       http_auth_challenge_t *basic = NULL;
        http_auth_challenge_t *digest = NULL;
        int i;
 
@@ -1335,10 +1334,8 @@ http_authorize(conn_t *conn, const char *hdr, http_auth_challenges_t *cs,
                return (-1);
        }
 
-       /* Look for a Digest and a Basic challenge */
+       /* Look for a Digest */
        for (i = 0; i < cs->count; i++) {
-               if (cs->challenges[i]->scheme == HTTPAS_BASIC)
-                       basic = cs->challenges[i];
                if (cs->challenges[i]->scheme == HTTPAS_DIGEST)
                        digest = cs->challenges[i];
        }