diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-04 06:59:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-04 06:59:15 +0000 |
commit | c8803b10d18fa4d28c7eba47c232004149779b26 (patch) | |
tree | fff3fd0592ec76e6eb66799c9d8723a4d935f7a4 /variable.c | |
parent | b381e3caee9e92bc795a1c8303195d270708e43c (diff) |
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.c | 2 |
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; |