summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/testing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing.c b/src/testing.c
index aa58bc7..e2c087c 100644
--- a/src/testing.c
+++ b/src/testing.c
@@ -18,7 +18,7 @@ ENVVAR_NAME = "NO_COLOR";
static bool
show_colour(void) {
const char *const no_colour = getenv(ENVVAR_NAME);
- return (no_colour != NULL) && (no_colour[0] != '\0');
+ return (no_colour == NULL) || (no_colour[0] == '\0');
}
void