diff options
Diffstat (limited to 'fdwatcher.c')
| -rw-r--r-- | fdwatcher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fdwatcher.c b/fdwatcher.c index 8e0cb97..a25d83d 100644 --- a/fdwatcher.c +++ b/fdwatcher.c @@ -77,9 +77,9 @@ _fdwatcher_handleEvents(struct FDWatchHandle *handle, int (*meow)(struct FDWatch int ret = 0; while (1) { + struct pollfd *watchedFdEntry = NULL; if (i == handle->watchedFdCount) break; - struct pollfd *watchedFdEntry = NULL; watchedFdEntry = &handle->watchedFds[i]; if (watchedFdEntry->revents != 0) { |
