Add exit(1) when ASSERT()
Move to 520 issues found by Clang Analyzer to only 18 ! --- src/common/capwap_debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
This commit is contained in:
parent
0cfead4e09
commit
1ba7fc2355
@ -3,7 +3,7 @@
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
#define ASSERT(expr) if (!(expr)) { capwap_logging_fatal("Assertion failed \'%s\': %s(%d)", #expr, __FILE__, __LINE__); }
|
||||
#define ASSERT(expr) if (!(expr)) { capwap_logging_fatal("Assertion failed \'%s\': %s(%d)", #expr, __FILE__, __LINE__); exit(1); }
|
||||
|
||||
/* Custom memory management */
|
||||
#define capwap_alloc(x) capwap_alloc_debug(x, __FILE__, __LINE__)
|
||||
|
Loading…
Reference in New Issue
Block a user