diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-02-11 10:52:15 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-11 13:11:36 -0800 |
commit | c64b9ad0fc02134d7271eb841fbdef9bc16660ea (patch) | |
tree | 4be5f48754c93ffdaa0bdd64b17ce49bb9b1a22a | |
parent | builtin-tag.c: guard config parser from value=NULL (diff) | |
download | tgif-c64b9ad0fc02134d7271eb841fbdef9bc16660ea.tar.xz |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |