[experimental-ims] c6e1e88 An assert to make sure...

Geoff Simmons geoff at varnish-cache.org
Wed Aug 31 16:03:27 CEST 2011


commit c6e1e88d8abf3a331a72dbda30885e986eb79991
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Aug 22 10:40:10 2011 +0000

    An assert to make sure...

diff --git a/bin/varnishd/storage_malloc.c b/bin/varnishd/storage_malloc.c
index 178973a..1cbfc10 100644
--- a/bin/varnishd/storage_malloc.c
+++ b/bin/varnishd/storage_malloc.c
@@ -202,6 +202,7 @@ sma_init(struct stevedore *parent, int ac, char * const *av)
 	ALLOC_OBJ(sc, SMA_SC_MAGIC);
 	AN(sc);
 	sc->sma_max = SIZE_MAX;
+	assert(sc->sma_max == SIZE_MAX);
 	parent->priv = sc;
 
 	AZ(av[ac]);



More information about the varnish-commit mailing list