help.c: guard config parser from value=NULL
help.format configuration expects a string value Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Feb 11, 2008 at 10:56 UTC
b51b2bb4c3da805727fd43219e3f817475ae52d3
1 file changed
+2
help.c
+2
@@ -40,6 +40,8 @@ static void parse_help_format(const char *format)
40
static int git_help_config(const char *var, const char *value)
41
{
42
if (!strcmp(var, "help.format")) {
43
+ if (!value)
44
+ return config_error_nonbool(var);
45
help_default_format = xstrdup(value);
46
return 0;
47
}