Skip to content

Commit

Permalink
help.c: guard config parser from value=NULL
Browse files Browse the repository at this point in the history
help.format configuration expects a string value

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Feb 11, 2008
1 parent e08404a commit b51b2bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions help.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b51b2bb

Please sign in to comment.