From da188c3bfb55945980d2506c8ca6453aa7aa274c Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 19 Jul 2006 08:33:10 +0000 Subject: [PATCH] Properly zero the worker structure when we start a thread. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@496 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/cache_pool.c b/varnish-cache/bin/varnishd/cache_pool.c index 664bf73a..f4762972 100644 --- a/varnish-cache/bin/varnishd/cache_pool.c +++ b/varnish-cache/bin/varnishd/cache_pool.c @@ -34,7 +34,7 @@ wrk_thread(void *priv) struct timespec ts; w = &ww; - memset(w, 0, sizeof w); + memset(w, 0, sizeof *w); AZ(pthread_cond_init(&w->cv, NULL)); -- 2.39.5