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
This commit is contained in:
nobu 2015-11-04 06:59:15 +00:00
parent b381e3caee
commit c8803b10d1

View File

@ -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;