http.c: Avoid username prompt for certifcate credentials
[gitweb.git] / http.c
diff --git a/http.c b/http.c
index f9a9de141622549ec4338cbbfc2f430029696ebe..0b32cc6a29ed82b56b67c44d7b464a902c5bba86 100644 (file)
--- a/http.c
+++ b/http.c
@@ -236,6 +236,7 @@ static int has_cert_password(void)
                return 0;
        if (!cert_auth.password) {
                cert_auth.protocol = xstrdup("cert");
+               cert_auth.username = xstrdup("");
                cert_auth.path = xstrdup(ssl_cert);
                credential_fill(&cert_auth);
        }