From: phk Date: Tue, 17 Feb 2009 10:12:21 +0000 (+0000) Subject: Assert that we got an objcore X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bb65f7b9a46507b95e5cfa4f1ba462ed2a2cd65;p=varnish Assert that we got an objcore git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3780 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_hash.c b/varnish-cache/bin/varnishd/cache_hash.c index 92f5de59..2ddb7baf 100644 --- a/varnish-cache/bin/varnishd/cache_hash.c +++ b/varnish-cache/bin/varnishd/cache_hash.c @@ -95,6 +95,7 @@ HSH_Prealloc(struct sess *sp) if (w->nobjcore == NULL) { ALLOC_OBJ(oc, OBJCORE_MAGIC); + XXXAN(oc); w->nobjcore = oc; oc->flags |= OC_F_BUSY; } diff --git a/varnish-cache/bin/varnishd/flint.sh b/varnish-cache/bin/varnishd/flint.sh index a0b82dae..8497ae96 100755 --- a/varnish-cache/bin/varnishd/flint.sh +++ b/varnish-cache/bin/varnishd/flint.sh @@ -10,4 +10,11 @@ flexelint \ flint.lnt \ *.c \ ../../lib/libvarnish/*.c \ - ../../lib/libvcl/*.c + ../../lib/libvcl/*.c \ + > $T +if [ -f _flint.old ] ; then + diff -u _flint.old $T + mv $T _flint.old +fi +cat $T +rm $T