diff --git a/libctf/ctf-impl.h b/libctf/ctf-impl.h index fc3f934f9bd..4b9518b5438 100644 --- a/libctf/ctf-impl.h +++ b/libctf/ctf-impl.h @@ -87,7 +87,7 @@ extern "C" #if defined (ENABLE_LIBCTF_HASH_DEBUGGING) && !defined (NDEBUG) #include -#define ctf_assert(fp, expr) (assert (expr), 1) +#define ctf_assert(fp, expr) (assert (expr), fp || 1) #else #define ctf_assert(fp, expr) \ _libctf_unlikely_ (ctf_assert_internal (fp, __FILE__, __LINE__, \