mirror of
https://github.com/switchbrew/switch-tools.git
synced 2025-06-22 14:02:40 +02:00
check env var exists before comparing (#4)
This commit is contained in:
parent
b53e334c76
commit
42739f52c9
@ -513,9 +513,10 @@ int main(int argc, char **argv) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
char *msyscon = getenv("MSYSCON");
|
char *msyscon = getenv("MSYSCON");
|
||||||
|
|
||||||
if (0 == strcmp(msyscon,"mintty.exe")) {
|
if (msyscon && 0 == strcmp(msyscon,"mintty.exe")) {
|
||||||
setvbuf(stdout, 0, _IONBF, 0);
|
setvbuf(stdout, 0, _IONBF, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user