X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=help.c;h=95e7640fedebb1574a4259d85d7b95d5220f0e6f;hb=c1ee9013ad5acfff47a36899af7d485f6d60fa83;hp=1302a61c83c524099e7d39257daa273a09edad4f;hpb=f85fd3f0d1213a2b714fddc7a834817aceeca932;p=git.git diff --git a/help.c b/help.c index 1302a61c8..95e7640fe 100644 --- a/help.c +++ b/help.c @@ -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; }