summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d551bba)
raw | patch | inline | side by side (parent: d551bba)
author | Miklos Vajna <vmiklos@frugalware.org> | |
Sun, 7 Dec 2008 00:45:37 +0000 (01:45 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 7 Dec 2008 10:41:55 +0000 (02:41 -0800) |
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http.c | patch | blob | history |
index a97fdf51173cf73d883c024d85109cbd4e607db9..c18e30abe84eee8d879814227d0433e9219e1273 100644 (file)
--- a/http.c
+++ b/http.c
static long curl_low_speed_limit = -1;
static long curl_low_speed_time = -1;
static int curl_ftp_no_epsv = 0;
-static char *curl_http_proxy = NULL;
+static const char *curl_http_proxy = NULL;
static struct curl_slist *pragma_header;
return 0;
}
if (!strcmp("http.proxy", var)) {
- if (curl_http_proxy == NULL) {
- if (!value)
- return config_error_nonbool(var);
- curl_http_proxy = xstrdup(value);
- }
+ if (curl_http_proxy == NULL)
+ return git_config_string(&curl_http_proxy, var, value);
return 0;
}
pragma_header = NULL;
if (curl_http_proxy) {
- free(curl_http_proxy);
+ free((void *)curl_http_proxy);
curl_http_proxy = NULL;
}
}