Browse Source

help.c: guard config parser from value=NULL

help.format configuration expects a string value

Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Junio C Hamano 17 years ago
parent
commit
b51b2bb4c3
  1. 2
      help.c

2
help.c

@ -40,6 +40,8 @@ static void parse_help_format(const char *format) @@ -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;
}

Loading…
Cancel
Save