builtin-log.c: guard config parser from value=NULL
format.subjectprefix configuration expects a string value. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
f769982d02
commit
995c45279e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user