From: phk Date: Fri, 12 Sep 2008 07:36:21 +0000 (+0000) Subject: Initialize obj->entered to NAN so our asserts will detect if it is not X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b94fbffff9bdc4acc2f51980b09393964d80237;p=varnish Initialize obj->entered to NAN so our asserts will detect if it is not properly set. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3181 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_hash.c b/varnish-cache/bin/varnishd/cache_hash.c index 9f102024..ce6b7c0d 100644 --- a/varnish-cache/bin/varnishd/cache_hash.c +++ b/varnish-cache/bin/varnishd/cache_hash.c @@ -115,6 +115,7 @@ HSH_Prealloc(struct sess *sp) w->nobj->busy = 1; w->nobj->refcnt = 1; w->nobj->grace = NAN; + w->nobj->entered = NAN; VTAILQ_INIT(&w->nobj->store); VTAILQ_INIT(&w->nobj->esibits); VSL_stats->n_object++;