covered null case for COLORTERM variable
This commit is contained in:
parent
3c9623040f
commit
01573867eb
1 changed files with 1 additions and 1 deletions
2
main.c
2
main.c
|
@ -52,7 +52,7 @@ int main(int argc, char **argv) {
|
||||||
|
|
||||||
int color_mode = 0;
|
int color_mode = 0;
|
||||||
char * colorterm = getenv("COLORTERM");
|
char * colorterm = getenv("COLORTERM");
|
||||||
if(strcmp(colorterm, ""))
|
if(colorterm != NULL && strcmp(colorterm, ""))
|
||||||
color_mode = 1;
|
color_mode = 1;
|
||||||
|
|
||||||
// handle flags
|
// handle flags
|
||||||
|
|
Loading…
Reference in a new issue