summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Hall <chris.hall@highwayman.com>2011-09-01 21:59:08 +0100
committerChris Hall <chris.hall@highwayman.com>2011-09-01 21:59:08 +0100
commit3f515315d5b17e432453eef67d7ac9e27bc39461 (patch)
treedb57464d23801966294f8f2e474489748139093b
parentf9ae53a6a7bf44ded198279b84c75c8165f72c2b (diff)
downloadquagga-3f515315d5b17e432453eef67d7ac9e27bc39461.tar.bz2
quagga-3f515315d5b17e432453eef67d7ac9e27bc39461.tar.xz
Fix qassert()
-rw-r--r--lib/zassert.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zassert.h b/lib/zassert.h
index ee36a98e..af93960a 100644
--- a/lib/zassert.h
+++ b/lib/zassert.h
@@ -51,7 +51,7 @@ extern void _zlog_abort_err (const char *mess, int err, const char *file,
#endif
/* Assert iff QDEBUG */
-#define qassert(EX) zassert(qdebug && (EX))
+#define qassert(EX) zassert(!qdebug || (EX))
/* Abort with message */
#define zabort(MS) _zlog_abort_mess(MS, __FILE__, __LINE__, __ASSERT_FUNCTION)