diff options
author | Brad King <brad.king@kitware.com> | 2021-05-06 15:53:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-05-06 15:53:18 (GMT) |
commit | 4141866dfeb1aab857d8ad8c2c11acde3f290eb3 (patch) | |
tree | 06dbb1b610338d7c4a56c24eb92a1824cdbb6259 /Source/kwsys | |
parent | e0b4a22ca6874a15912eea86cde16f47cb5f9d93 (diff) | |
parent | 760bdfb26ee94569287991d12e988573ab260177 (diff) | |
download | CMake-4141866dfeb1aab857d8ad8c2c11acde3f290eb3.zip CMake-4141866dfeb1aab857d8ad8c2c11acde3f290eb3.tar.gz CMake-4141866dfeb1aab857d8ad8c2c11acde3f290eb3.tar.bz2 |
Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
KWSys 2021-05-06 (2fa93cfc)
Diffstat (limited to 'Source/kwsys')
-rw-r--r-- | Source/kwsys/Terminal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/kwsys/Terminal.c b/Source/kwsys/Terminal.c index 57a68bf..20bb5fe 100644 --- a/Source/kwsys/Terminal.c +++ b/Source/kwsys/Terminal.c @@ -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; } } |