Re: [PATCH] http.c: guard config parser from value=NULL
"Govind Salinas" <blix@sophiasuchtig.com> writes:
Show 19 quoted lines
> Signed-off-by: Govind Salinas <blix@sophiasuchtig.com>
> ---
> http.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/http.c b/http.c
> index d2c11ae..0a2c1c8 100644
> --- a/http.c
> +++ b/http.c
> @@ -92,6 +92,9 @@ static void process_curl_messages(void)
>
> static int http_options(const char *var, const char *value)
> {
> + if (!value)
> + return git_default_config(var, value);
> +
> if (!strcmp("http.sslverify", var)) {
> if (curl_ssl_verify == -1) {
> curl_ssl_verify = git_config_bool(var, value);I think this patch is wrong.
You just broke existing repositories with:
[http]
sslverifyto set it to true.