From b51b2bb4c3da805727fd43219e3f817475ae52d3 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 11 Feb 2008 10:56:26 -0800 Subject: [PATCH] help.c: guard config parser from value=NULL help.format configuration expects a string value Signed-off-by: Junio C Hamano --- help.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/help.c b/help.c index 1302a61c83..95e7640fed 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; } -- 2.11.4.GIT