null values

This commit is contained in:
cabelo 2019-03-23 14:04:03 -03:00 committed by Stefan Haustein
parent 9717adc840
commit 28e9f5e40e

View file

@ -420,6 +420,7 @@ int main(int argc, char* argv[]) {
struct winsize w; struct winsize w;
ioctl(STDOUT_FILENO, TIOCGWINSZ, &w); ioctl(STDOUT_FILENO, TIOCGWINSZ, &w);
//If redirect STDOUT to one file
if(w.ws_col == 0 && w.ws_col == 0) if(w.ws_col == 0 && w.ws_col == 0)
ioctl(0, TIOCGWINSZ, &w); ioctl(0, TIOCGWINSZ, &w);