aboutsummaryrefslogtreecommitdiffstats
path: root/variable.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-04 06:59:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-04 06:59:15 +0000
commit25c5704436b345f4ad7b81385f2faf6ffd3dd5f8 (patch)
treefff3fd0592ec76e6eb66799c9d8723a4d935f7a4 /variable.c
parent86babb4d02a2560f4b493ae9d099b715f962feca (diff)
downloadruby-25c5704436b345f4ad7b81385f2faf6ffd3dd5f8.tar.gz
variable.c: suppress a warning
* variable.c (autoload_reset): initialize formally to suppress a warning from container_off_var() by Visual C. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c
index 000c48ddd5..ec6924ad2f 100644
--- a/variable.c
+++ b/variable.c
@@ -2128,7 +2128,7 @@ autoload_reset(VALUE arg)
/* wakeup any waiters we had */
if (need_wakeups) {
- struct autoload_state *cur, *nxt;
+ struct autoload_state *cur = 0, *nxt;
list_for_each_safe(&state->waitq.head, cur, nxt, waitq.node) {
VALUE th = cur->thread;