summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-04 16:05:40 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-04 16:05:40 +0000
commit3765f668c616c1ef2b8d4feb9195fb2c62e96c3d (patch)
tree3df1cca8a373f8581524fe78ce25b1d47d679448 /thread.c
parentbbfbf662cceb6e7d8dc769ca365c563b9c073592 (diff)
supress warning
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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;