X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=color.c;h=bcf4e2c192c31136729aabcc2575a94f809d2980;hb=f2cabf6abfb1ebf8c1f1a4789ae003990b5f0ba9;hp=e8bcac0a79a27ee093f3d5a92013780cf52eb9da;hpb=c512b035556eff4d8f869afeda5fd78bc7a4966d;p=git.git diff --git a/color.c b/color.c index e8bcac0a7..bcf4e2c19 100644 --- a/color.c +++ b/color.c @@ -146,6 +146,9 @@ int git_config_colorbool(const char *var, const char *value, int stdout_is_tty) goto auto_color; } + if (!var) + return -1; + /* Missing or explicit false to turn off colorization */ if (!git_config_bool(var, value)) return 0;