Skip to content

Commit b23fbd5

Browse files
committed
Pass existing null pointers in select()
1 parent fa88a28 commit b23fbd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libfaketime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,7 @@ int select(int nfds, fd_set *readfds,
10651065
}
10661066
}
10671067

1068-
DONT_FAKE_TIME(ret = (*real_select)(nfds, readfds, writefds, errorfds, &timeout_real));
1068+
DONT_FAKE_TIME(ret = (*real_select)(nfds, readfds, writefds, errorfds, timeout == NULL ? timeout : &timeout_real));
10691069
return ret;
10701070
}
10711071

0 commit comments

Comments
 (0)