From: Junio C Hamano Date: Mon, 11 Feb 2008 18:52:15 +0000 (-0800) Subject: connect.c: guard config parser from value=NULL X-Git-Tag: v1.5.4.2~40 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c64b9ad0fc02134d7271eb841fbdef9bc16660ea;p=git.git connect.c: guard config parser from value=NULL core.gitproxy configuration expects a string value. Signed-off-by: Junio C Hamano --- diff --git a/connect.c b/connect.c index 3aefd4ace..71597d492 100644 --- a/connect.c +++ b/connect.c @@ -370,6 +370,8 @@ static int git_proxy_command_options(const char *var, const char *value) if (git_proxy_command) return 0; + if (!value) + return config_error_nonbool(var); /* [core] * ;# matches www.kernel.org as well * gitproxy = netcatter-1 for kernel.org