]> err.no Git - varnish/commitdiff
Assert that we got an objcore
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 17 Feb 2009 10:12:21 +0000 (10:12 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 17 Feb 2009 10:12:21 +0000 (10:12 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3780 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_hash.c
varnish-cache/bin/varnishd/flint.sh

index 92f5de59caf4aca03ae4b44a6dd28076ba92f62d..2ddb7baf95cc6f75c396a1c673ac97fce7e3d0d6 100644 (file)
@@ -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;
        }
index a0b82dae3d681806d4e5e3c74f91c87e7e632dd3..8497ae966e485cd356fc301d5335320f74d60762 100755 (executable)
@@ -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