r745 - trunk/varnish-cache/include

phk at projects.linpro.no phk at projects.linpro.no
Mon Aug 7 19:18:42 CEST 2006


Author: phk
Date: 2006-08-07 19:18:42 +0200 (Mon, 07 Aug 2006)
New Revision: 745

Modified:
   trunk/varnish-cache/include/libvarnish.h
Log:
Make assert do the right thing


Modified: trunk/varnish-cache/include/libvarnish.h
===================================================================
--- trunk/varnish-cache/include/libvarnish.h	2006-08-07 17:15:10 UTC (rev 744)
+++ trunk/varnish-cache/include/libvarnish.h	2006-08-07 17:18:42 UTC (rev 745)
@@ -22,7 +22,7 @@
 #else /* WITH_ASSERTS */
 #define assert(e)							\
 do { 									\
-	if (e)								\
+	if (!(e))							\
 		lbv_assert(__func__, __FILE__, __LINE__, #e, errno);	\
 } while (0)
 #endif




More information about the varnish-commit mailing list