summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-02-11 18:48:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-02-11 21:11:36 (GMT)
commit995c45279e270811f53b7ff8bf44a07ed3457ddc (patch)
treef6b85b2d3ff53c0e167dc060ef431f8e2a00f51c
parentf769982d02f70534789593e2bab889c9aa3a641c (diff)
downloadgit-995c45279e270811f53b7ff8bf44a07ed3457ddc.zip
git-995c45279e270811f53b7ff8bf44a07ed3457ddc.tar.gz
git-995c45279e270811f53b7ff8bf44a07ed3457ddc.tar.bz2
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>
-rw-r--r--builtin-log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-log.c b/builtin-log.c
index dcc9f81..9458428 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;
}