]> err.no Git - varnish/commitdiff
Use struct assignment to overcome volatile poisoning.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 22 Jan 2007 11:46:25 +0000 (11:46 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 22 Jan 2007 11:46:25 +0000 (11:46 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1236 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/shmlog.c

index a5cf979840342f5dd9dc74a006ed644e4ed92080..9d99db93c04681952d74f63bd0e080ad7f1edc8e 100644 (file)
@@ -365,6 +365,6 @@ VSL_MgtInit(const char *fn, unsigned size)
        xxxassert(loghead != MAP_FAILED);
        VSL_stats = &loghead->stats;
        pp = (void *)(loghead + 1);
-       memcpy(pp, params, sizeof *pp);
+       *pp = *params;
        params = pp;
 }