Pass existing null pointers in select()

This commit is contained in:
Wolfgang Hommel
2017-06-08 19:50:34 +02:00
parent fa88a28c4d
commit b23fbd5c5e

View File

@@ -1065,7 +1065,7 @@ int select(int nfds, fd_set *readfds,
}
}
DONT_FAKE_TIME(ret = (*real_select)(nfds, readfds, writefds, errorfds, &timeout_real));
DONT_FAKE_TIME(ret = (*real_select)(nfds, readfds, writefds, errorfds, timeout == NULL ? timeout : &timeout_real));
return ret;
}