index e8bcac0a79a27ee093f3d5a92013780cf52eb9da..bcf4e2c192c31136729aabcc2575a94f809d2980 100644 (file)
--- a/color.c
+++ b/color.c
goto auto_color;
}
goto auto_color;
}
+ if (!var)
+ return -1;
+
/* Missing or explicit false to turn off colorization */
if (!git_config_bool(var, value))
return 0;
/* Missing or explicit false to turn off colorization */
if (!git_config_bool(var, value))
return 0;