Commit f140a9e3 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

r34132@cat (orig r1236): phk | 2007-01-22 12:46:25 +0100

 Use struct assignment to overcome volatile poisoning.
 


git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1256 d4fa192b-c00b-0410-8231-f00ffab90ce4
parents b20f8557 0222e18a
......@@ -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;
}
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