From: des Date: Tue, 4 Mar 2008 10:58:02 +0000 (+0000) Subject: Remove duplicate allocation. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cd19d73d1c967666effcd0386e503a6ad9337fe;p=varnish Remove duplicate allocation. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2550 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_vrt.c b/varnish-cache/bin/varnishd/cache_vrt.c index b9e90fad..842bcfde 100644 --- a/varnish-cache/bin/varnishd/cache_vrt.c +++ b/varnish-cache/bin/varnishd/cache_vrt.c @@ -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); }