Skip to content

Commit

Permalink
connect.c: guard config parser from value=NULL
Browse files Browse the repository at this point in the history
core.gitproxy configuration expects a string value.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Feb 11, 2008
1 parent 406d95f commit c64b9ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c64b9ad

Please sign in to comment.