From 42ff87d6ec00a58e370770935b22104e94520964 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 22 Jan 2007 11:46:25 +0000 Subject: [PATCH] Use struct assignment to overcome volatile poisoning. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1236 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/shmlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/shmlog.c b/varnish-cache/bin/varnishd/shmlog.c index a5cf9798..9d99db93 100644 --- a/varnish-cache/bin/varnishd/shmlog.c +++ b/varnish-cache/bin/varnishd/shmlog.c @@ -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; } -- 2.39.5