summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-02-11 18:52:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-02-11 21:11:36 (GMT)
commitc64b9ad0fc02134d7271eb841fbdef9bc16660ea (patch)
tree4be5f48754c93ffdaa0bdd64b17ce49bb9b1a22a
parent406d95f2d013bd17d79bbcf9438a2f03bd70a78a (diff)
downloadgit-c64b9ad0fc02134d7271eb841fbdef9bc16660ea.zip
git-c64b9ad0fc02134d7271eb841fbdef9bc16660ea.tar.gz
git-c64b9ad0fc02134d7271eb841fbdef9bc16660ea.tar.bz2
connect.c: guard config parser from value=NULL
core.gitproxy configuration expects a string value. Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--connect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/connect.c b/connect.c
index 3aefd4a..71597d4 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