summaryrefslogtreecommitdiff
path: root/src/basic/fdset.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/fdset.c')
-rw-r--r--src/basic/fdset.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/basic/fdset.c b/src/basic/fdset.c
index 6101b628ec..a4823e6659 100644
--- a/src/basic/fdset.c
+++ b/src/basic/fdset.c
@@ -267,8 +267,7 @@ bool fdset_isempty(FDSet *fds) {
int fdset_iterate(FDSet *s, Iterator *i) {
void *p;
- p = set_iterate(MAKE_SET(s), i);
- if (!p)
+ if (!set_iterate(MAKE_SET(s), i, &p))
return -ENOENT;
return PTR_TO_FD(p);