summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--fdwatcher.c2
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) {