From 6cd19d73d1c967666effcd0386e503a6ad9337fe Mon Sep 17 00:00:00 2001 From: des Date: Tue, 4 Mar 2008 10:58:02 +0000 Subject: [PATCH] Remove duplicate allocation. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2550 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_vrt.c | 1 - 1 file changed, 1 deletion(-) 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); } -- 2.39.5