connect.c: guard config parser from value=NULL
core.gitproxy configuration expects a string value. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Feb 11, 2008 at 10:52 UTC
c64b9ad0fc02134d7271eb841fbdef9bc16660ea
1 file changed
+2
connect.c
+2
@@ -370,6 +370,8 @@ static int git_proxy_command_options(const char *var, const char *value)
370
371
if (git_proxy_command)
372
return 0;
373
+ if (!value)
374
+ return config_error_nonbool(var);
375
/* [core]
376
* ;# matches www.kernel.org as well
377
* gitproxy = netcatter-1 for kernel.org