mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-05 22:28:35 -06:00
Merge topic 'update-kwsys'
4141866dfeMerge branch 'upstream-KWSys' into update-kwsys760bdfb26eKWSys 2021-05-06 (2fa93cfc) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6095
This commit is contained in:
@@ -167,7 +167,8 @@ 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 && strcmp(clicolor_force, "0") != 0) {
|
||||
if (clicolor_force && *clicolor_force &&
|
||||
strcmp(clicolor_force, "0") != 0) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user