Commit 839e4acd authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Typo in previous commit.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2188 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 3b1e4b70
......@@ -88,7 +88,7 @@ HSH_Prealloc(struct sess *sp)
if (w->nobj == NULL) {
st = STV_alloc(sp, params->mem_workspace);
XXXAN(st);
assert(st->size > sizeof *w->nobj);
assert(st->space > sizeof *w->nobj);
w->nobj = (void *)st->ptr; /* XXX: align ? */
st->len = sizeof *w->nobj;
memset(w->nobj, 0, sizeof *w->nobj);
......
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