Skip to content

Commit d108545

Browse files
committed
disable for ascii 0
1 parent 81da07b commit d108545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

localscore/utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ namespace utils {
188188

189189
inline bool should_use_color() {
190190
const char* no_color = getenv("NO_COLOR");
191-
if (no_color != NULL && no_color[0] != '\0') {
191+
if (no_color != NULL && no_color[0] != '0' && no_color[0] != '\0') {
192192
return false;
193193
}
194194
return true;

0 commit comments

Comments
 (0)