提交 b51b2bb4 编写于 作者: J Junio C Hamano

help.c: guard config parser from value=NULL

help.format configuration expects a string value
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 e08404a8
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册