r2550 - trunk/varnish-cache/bin/varnishd

des at projects.linpro.no des at projects.linpro.no
Tue Mar 4 11:58:02 CET 2008


Author: des
Date: 2008-03-04 11:58:02 +0100 (Tue, 04 Mar 2008)
New Revision: 2550

Modified:
   trunk/varnish-cache/bin/varnishd/cache_vrt.c
Log:
Remove duplicate allocation.


Modified: trunk/varnish-cache/bin/varnishd/cache_vrt.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_vrt.c	2008-03-04 09:29:54 UTC (rev 2549)
+++ trunk/varnish-cache/bin/varnishd/cache_vrt.c	2008-03-04 10:58:02 UTC (rev 2550)
@@ -599,7 +599,6 @@
 
 	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);
 }




More information about the varnish-commit mailing list