diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-02-11 10:48:55 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-11 13:11:36 -0800 |
commit | 995c45279e270811f53b7ff8bf44a07ed3457ddc (patch) | |
tree | f6b85b2d3ff53c0e167dc060ef431f8e2a00f51c /builtin-log.c | |
parent | f769982d02f70534789593e2bab889c9aa3a641c (diff) | |
download | git-995c45279e270811f53b7ff8bf44a07ed3457ddc.tar.gz |
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>
Diffstat (limited to 'builtin-log.c')
-rw-r--r-- | builtin-log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-log.c b/builtin-log.c index dcc9f81793..9458428a8b 100644 --- a/builtin-log.c +++ b/builtin-log.c @@ -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; } |