Skip to content

Commit

Permalink
builtin-log.c: guard config parser from value=NULL
Browse files Browse the repository at this point in the history
format.subjectprefix 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 f769982 commit 995c452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-log.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ static int git_log_config(const char *var, const char *value)
{
if (!strcmp(var, "format.subjectprefix")) {
if (!value)
die("format.subjectprefix without value");
config_error_nonbool(var);
fmt_patch_subject_prefix = xstrdup(value);
return 0;
}
Expand Down

0 comments on commit 995c452

Please sign in to comment.