]> err.no Git - varnish/commitdiff
Make assert do the right thing
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 7 Aug 2006 17:18:42 +0000 (17:18 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 7 Aug 2006 17:18:42 +0000 (17:18 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@745 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/include/libvarnish.h

index 02c8431e28dce6d69837fe2c5ae39f08f4ae70c4..a3a1edd72e7822317758c89adebb135847b0fa66 100644 (file)
@@ -22,7 +22,7 @@ void varnish_version(const char *);
 #else /* WITH_ASSERTS */
 #define assert(e)                                                      \
 do {                                                                   \
-       if (e)                                                          \
+       if (!(e))                                                       \
                lbv_assert(__func__, __FILE__, __LINE__, #e, errno);    \
 } while (0)
 #endif