summaryrefslogtreecommitdiff
path: root/src/libfaketime.c
diff options
context:
space:
mode:
authorWolfgang Hommel <wolf@code-wizards.com>2017-06-08 19:50:34 +0200
committerWolfgang Hommel <wolf@code-wizards.com>2017-06-08 19:50:34 +0200
commitb23fbd5c5eaa31219d408d322e2f0c5fcce86ee3 (patch)
tree146693d20fbc0e24081ccc71705e1c1436d47b21 /src/libfaketime.c
parentfa88a28c4dff8eeee7fb8f2b607601c1b61cdfa0 (diff)
downloadlibfaketime-b23fbd5c5eaa31219d408d322e2f0c5fcce86ee3.tar.gz
Pass existing null pointers in select()v0.9.7b1
Diffstat (limited to 'src/libfaketime.c')
-rw-r--r--src/libfaketime.c2
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;
}