Commit 5d8f2601 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Preincrement seq#, otherwise it makes no difference.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4960 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 61ee9da8
...@@ -116,7 +116,7 @@ VSM_Alloc(unsigned size, const char *class, const char *type, const char *ident) ...@@ -116,7 +116,7 @@ VSM_Alloc(unsigned size, const char *class, const char *type, const char *ident)
VWMB(); VWMB();
if (seq != 0) if (seq != 0)
do do
loghead->alloc_seq = seq++; loghead->alloc_seq = ++seq;
while (loghead->alloc_seq == 0); while (loghead->alloc_seq == 0);
return (VSM_PTR(sha)); return (VSM_PTR(sha));
......
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