aboutsummaryrefslogtreecommitdiffstats
path: root/thread_sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_sync.c')
-rw-r--r--thread_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_sync.c b/thread_sync.c
index e40e8c2ea8..d33b22173f 100644
--- a/thread_sync.c
+++ b/thread_sync.c
@@ -60,7 +60,7 @@ static const char* rb_mutex_unlock_th(rb_mutex_t *mutex, rb_thread_t volatile *t
static size_t
rb_mutex_num_waiting(rb_mutex_t *mutex)
{
- struct mutex_waiter *w;
+ struct mutex_waiter *w = 0;
size_t n = 0;
list_for_each(&mutex->waitq, w, node) {