]> err.no Git - varnish/commitdiff
Remove duplicate allocation.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 4 Mar 2008 10:58:02 +0000 (10:58 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 4 Mar 2008 10:58:02 +0000 (10:58 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2550 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_vrt.c

index b9e90fadfff7e3fe133346d3fb83d4ee7c13eba9..842bcfdeeb6df516a78c20bdd816727d761b6f3f 100644 (file)
@@ -599,7 +599,6 @@ VRT_double_string(const struct sess *sp, double num)
 
        size = snprintf(NULL, 0, "%.3f", num) + 1;
        AN(p = WS_Alloc(sp->http->ws, size));
-       assert((p = malloc(size)) != 0);
        assert(snprintf(p, size, "%.3f", num) < size);
        return (p);
 }