From: Junio C Hamano Date: Mon, 11 Feb 2008 18:56:26 +0000 (-0800) Subject: help.c: guard config parser from value=NULL X-Git-Tag: v1.5.4.2~36 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b51b2bb4c3da805727fd43219e3f817475ae52d3;p=git.git help.c: guard config parser from value=NULL help.format configuration expects a string value Signed-off-by: Junio C Hamano --- diff --git a/help.c b/help.c index 1302a61c8..95e7640fe 100644 --- a/help.c +++ b/help.c @@ -40,6 +40,8 @@ static void parse_help_format(const char *format) static int git_help_config(const char *var, const char *value) { if (!strcmp(var, "help.format")) { + if (!value) + return config_error_nonbool(var); help_default_format = xstrdup(value); return 0; }