aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 3aeebaf13a..a4b6d97669 100644
--- a/thread.c
+++ b/thread.c
@@ -3462,7 +3462,7 @@ int
rb_wait_for_single_fd(int fd, int events, struct timeval *tv)
{
struct pollfd fds;
- int result, lerrno;
+ int result = 0, lerrno;
double limit = 0;
struct timespec ts;
struct timespec *timeout = NULL;