]> err.no Git - varnish/commitdiff
Add missing assert
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 5 Aug 2007 20:47:16 +0000 (20:47 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 5 Aug 2007 20:47:16 +0000 (20:47 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1799 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/stevedore.c

index deaa56fe0f9cdae78d0023987a895a860cf3fdb0..7a15faf604483eb901b9866cf56c67e892ab8766 100644 (file)
@@ -112,6 +112,7 @@ STV_add(const char *spec)
        xxxassert(q != NULL);
 
        stv = malloc(sizeof *stv);
+       AN(stv);
 
        if (!cmp_storage(&sma_stevedore, spec, p)) {
                *stv = sma_stevedore;