From 8bb65f7b9a46507b95e5cfa4f1ba462ed2a2cd65 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 17 Feb 2009 10:12:21 +0000 Subject: [PATCH] Assert that we got an objcore git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3780 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_hash.c | 1 + varnish-cache/bin/varnishd/flint.sh | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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 -- 2.39.5