summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e08404a)
raw | patch | inline | side by side (parent: e08404a)
author | Junio C Hamano <gitster@pobox.com> | |
Mon, 11 Feb 2008 18:56:26 +0000 (10:56 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 11 Feb 2008 21:11:37 +0000 (13:11 -0800) |
help.format configuration expects a string value
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
help.c | patch | blob | history |
index 1302a61c83c524099e7d39257daa273a09edad4f..95e7640fedebb1574a4259d85d7b95d5220f0e6f 100644 (file)
--- a/help.c
+++ b/help.c
static int git_help_config(const char *var, const char *value)
{
if (!strcmp(var, "help.format")) {
+ if (!value)
+ return config_error_nonbool(var);
help_default_format = xstrdup(value);
return 0;
}