diff options
author | Wolfgang Hommel <wolf@code-wizards.com> | 2017-06-08 19:50:34 +0200 |
---|---|---|
committer | Wolfgang Hommel <wolf@code-wizards.com> | 2017-06-08 19:50:34 +0200 |
commit | b23fbd5c5eaa31219d408d322e2f0c5fcce86ee3 (patch) | |
tree | 146693d20fbc0e24081ccc71705e1c1436d47b21 /src/libfaketime.c | |
parent | fa88a28c4dff8eeee7fb8f2b607601c1b61cdfa0 (diff) | |
download | libfaketime-b23fbd5c5eaa31219d408d322e2f0c5fcce86ee3.tar.gz |
Pass existing null pointers in select()v0.9.7b1
Diffstat (limited to 'src/libfaketime.c')
-rw-r--r-- | src/libfaketime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfaketime.c b/src/libfaketime.c index 0e47697..8c1f16a 100644 --- a/src/libfaketime.c +++ b/src/libfaketime.c @@ -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; } |