From 99a8d4a8c2aba74e541707ca8ab10d96bdc3a190 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 29 Nov 2012 16:51:01 +0100 Subject: [PATCH] unix: remove unnecessary static var init wq doesn't have to be initialized, init_once() takes care of that. Remove the initialization so it goes into .bss instead of .data. --- src/unix/threadpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/threadpool.c b/src/unix/threadpool.c index ab2f59c3..9f56229c 100644 --- a/src/unix/threadpool.c +++ b/src/unix/threadpool.c @@ -26,7 +26,7 @@ static uv_cond_t cond; static uv_mutex_t mutex; static uv_thread_t threads[4]; static ngx_queue_t exit_message; -static ngx_queue_t wq = { &wq, &wq }; +static ngx_queue_t wq; static volatile int initialized;