Commit 0222e18a authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Use struct assignment to overcome volatile poisoning.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1236 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent ba9a6f74
...@@ -365,6 +365,6 @@ VSL_MgtInit(const char *fn, unsigned size) ...@@ -365,6 +365,6 @@ VSL_MgtInit(const char *fn, unsigned size)
xxxassert(loghead != MAP_FAILED); xxxassert(loghead != MAP_FAILED);
VSL_stats = &loghead->stats; VSL_stats = &loghead->stats;
pp = (void *)(loghead + 1); pp = (void *)(loghead + 1);
memcpy(pp, params, sizeof *pp); *pp = *params;
params = pp; params = pp;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment