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:
@ -219,7 +219,7 @@ static int git_log_config(const char *var, const char *value)
|
|||||||
{
|
{
|
||||||
if (!strcmp(var, "format.subjectprefix")) {
|
if (!strcmp(var, "format.subjectprefix")) {
|
||||||
if (!value)
|
if (!value)
|
||||||
die("format.subjectprefix without value");
|
config_error_nonbool(var);
|
||||||
fmt_patch_subject_prefix = xstrdup(value);
|
fmt_patch_subject_prefix = xstrdup(value);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user