[3.0] 0bd09c9 An assert to make sure...
Tollef Fog Heen
tfheen at varnish-cache.org
Wed Aug 24 09:24:06 CEST 2011
commit 0bd09c91f6b92f25b6eb3eebc7b086cad3a1b155
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