[master] 30a37c0 Compilers these days have no sense of fun!

Poul-Henning Kamp phk at varnish-cache.org
Mon Nov 21 09:15:36 CET 2011


commit 30a37c06d190338089b4e0e819b063298e34d37d
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Nov 21 08:15:21 2011 +0000

    Compilers these days have no sense of fun!

diff --git a/bin/varnishd/common/common_vsm.c b/bin/varnishd/common/common_vsm.c
index 4eb4195..3853ed8 100644
--- a/bin/varnishd/common/common_vsm.c
+++ b/bin/varnishd/common/common_vsm.c
@@ -289,7 +289,7 @@ VSM_common_free(struct vsm_sc *sc, void *ptr)
 		}
 	}
 	/* Panic */
-	assert(ptr == "Bogus pointer freed");
+	assert(ptr == NULL);
 }
 
 /*--------------------------------------------------------------------



More information about the varnish-commit mailing list