mirror of
https://github.com/switchbrew/switch-tools.git
synced 2025-06-21 21:42:39 +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;
|
||||
}
|
||||
|
||||
|
||||
char *msyscon = getenv("MSYSCON");
|
||||
|
||||
if (0 == strcmp(msyscon,"mintty.exe")) {
|
||||
if (msyscon && 0 == strcmp(msyscon,"mintty.exe")) {
|
||||
setvbuf(stdout, 0, _IONBF, 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user