From 25c5704436b345f4ad7b81385f2faf6ffd3dd5f8 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 4 Nov 2015 06:59:15 +0000 Subject: 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 --- variable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'variable.c') 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; -- cgit v1.2.3