Commit 723a2390 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Initialize all directions to "opposite" for -b and -c to avoid

spurious first entries.



git-svn-id: http://www.varnish-cache.org/svn/trunk@643 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 2d1cee46
......@@ -122,6 +122,12 @@ VSL_OpenLog(struct VSL_data *vd)
vd->logend = vd->logstart + vsl_lh->size;
vd->ptr = vd->logstart;
if (vd->b_opt)
memset(vd->dir, 1, sizeof vd->dir);
if (vd->c_opt)
memset(vd->dir, 2, sizeof vd->dir);
if (!vd->d_opt)
while (vsl_nextlog(vd, &p) == 1)
continue;
......
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