commit | d865eb2a0d5f121a46dfcc18c78e7f27e0af0fbc | [log] [tgz] |
---|---|---|
author | Junio C Hamano <gitster@pobox.com> | Mon Feb 11 10:46:39 2008 -0800 |
committer | Junio C Hamano <gitster@pobox.com> | Mon Feb 11 13:11:36 2008 -0800 |
tree | 49188f682a6efe638df290b65d2c25265dfd5e83 | |
parent | 5768c98ab8892ee0ca46e23ed46c4d94e0503e72 [diff] [blame] |
builtin-commit.c: guard config parser from value=NULL commit.template configuration expects a string value. Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff --git a/builtin-commit.c b/builtin-commit.c index 3a47275..a43f201 100644 --- a/builtin-commit.c +++ b/builtin-commit.c
@@ -743,6 +743,8 @@ int git_commit_config(const char *k, const char *v) { if (!strcmp(k, "commit.template")) { + if (!v) + return config_error_nonbool(v); template_file = xstrdup(v); return 0; }