fd-util: Add missing assert()
This commit is contained in:
committed by
Daan De Meyer
parent
ba74a144c4
commit
1cc7353dcf
@@ -167,6 +167,8 @@ int fd_nonblock(int fd, bool nonblock) {
|
||||
}
|
||||
|
||||
void nonblock_resetp(int *fd) {
|
||||
assert(fd);
|
||||
|
||||
PROTECT_ERRNO;
|
||||
|
||||
if (*fd >= 0)
|
||||
|
||||
Reference in New Issue
Block a user