Commit 5a5dffc5 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@1236 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 15144537
......@@ -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