Skip to content
Snippets Groups Projects
Commit bbf6cdef authored by Martin Willers's avatar Martin Willers Committed by Brad King
Browse files

Terminal: Simplify CLICOLOR_FORCE check

parent 5655d533
No related branches found
No related tags found
1 merge request!215Terminal: Disable color output when CLICOLOR is set to 0
......@@ -167,8 +167,7 @@ static int kwsysTerminalStreamIsVT100(FILE* stream, int default_vt100,
/* Force color according to http://bixense.com/clicolors/ convention. */
{
const char* clicolor_force = getenv("CLICOLOR_FORCE");
if (clicolor_force && *clicolor_force &&
strcmp(clicolor_force, "0") != 0) {
if (clicolor_force && strcmp(clicolor_force, "0") != 0) {
return 1;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment