projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f769982
)
builtin-log.c: guard config parser from value=NULL
author
Junio C Hamano
<gitster@pobox.com>
Mon, 11 Feb 2008 18:48:55 +0000
(10:48 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 11 Feb 2008 21:11:36 +0000
(13:11 -0800)
format.subjectprefix configuration expects a string value.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-log.c
patch
|
blob
|
history
diff --git
a/builtin-log.c
b/builtin-log.c
index dcc9f817930a3caf8d434dfd54fe476501bcdda2..9458428a8b69077a4b17475d596144ce92e1da4e 100644
(file)
--- 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;
}