]> err.no Git - varnish/commitdiff
Properly zero the worker structure when we start a thread.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 19 Jul 2006 08:33:10 +0000 (08:33 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 19 Jul 2006 08:33:10 +0000 (08:33 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@496 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_pool.c

index 664bf73a02cc04b22dba0cc3882517b1b979b802..f4762972ddeba94c7ec0e313560df2cf3cb901e5 100644 (file)
@@ -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));