diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-02-11 10:56:26 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-11 13:11:37 -0800 |
commit | b51b2bb4c3da805727fd43219e3f817475ae52d3 (patch) | |
tree | d181005eec3faa42ef491b8ebf74e9e2e43e780d | |
parent | git.c: guard config parser from value=NULL (diff) | |
download | tgif-b51b2bb4c3da805727fd43219e3f817475ae52d3.tar.xz |
help.c: guard config parser from value=NULL
help.format configuration expects a string value
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | help.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -40,6 +40,8 @@ static void parse_help_format(const char *format) 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; } |