From: phk Date: Wed, 19 Jul 2006 08:33:10 +0000 (+0000) Subject: Properly zero the worker structure when we start a thread. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da188c3bfb55945980d2506c8ca6453aa7aa274c;p=varnish 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 --- 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));