Skip to content

Commit

Permalink
Pass existing null pointers in select()
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfcw committed Jun 8, 2017
1 parent fa88a28 commit b23fbd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libfaketime.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b23fbd5

Please # to comment.