From d06644dedc1dea9dc958a603c051ada7e9a29443 Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Tue, 4 Mar 2014 16:53:28 +0000 Subject: [PATCH] AO2: Add an assert for bad objects This adds an assert that will only be active if Asterisk is compiled with DO_CRASH and allows the testsuite to fail tests that would otherwise require log file parsing. ........ Merged revisions 409566 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 409567 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@409568 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/astobj2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main/astobj2.c b/main/astobj2.c index ec80f64896..fb9c5d1da3 100644 --- a/main/astobj2.c +++ b/main/astobj2.c @@ -167,6 +167,7 @@ static inline struct astobj2 *INTERNAL_OBJ(void *user_data) "bad magic number for object %p. Object is likely destroyed.\n", user_data); } + ast_assert(0); return NULL; } -- 2.47.2