diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2015-06-16 14:44:43 +0200 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2015-06-16 14:44:43 +0200 |
commit | 9ef41ffeec0a677f0c8006b17e5ff1c8434418a3 (patch) | |
tree | b0f66b97ddf0e13c4cd1240fc0fd7ef6ad618a82 /src/basic/fdset.c | |
parent | aab723074c368f65aaf2748d0c530ba9a1e6ad3e (diff) | |
parent | 8927b1dad2d4a7330174cb924090b4635a2547fb (diff) |
Merge pull request #197 from dvdhrm/hashmap
hashmap: fix iterators to not skip entries
Diffstat (limited to 'src/basic/fdset.c')
-rw-r--r-- | src/basic/fdset.c | 3 |
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); |