summaryrefslogtreecommitdiff
path: root/main/astobj2.c
diff options
context:
space:
mode:
authorKinsey Moore <kmoore@digium.com>2014-03-04 16:55:43 +0000
committerKinsey Moore <kmoore@digium.com>2014-03-04 16:55:43 +0000
commit6204ea6c1a42a3a250614776a0e67b2c40e991ff (patch)
treec1d81fc03a2f838ed5b610a544d1b65ba32a7e8a /main/astobj2.c
parentf5b2f1333fe3a3e2e4dce65e5a52ffa9570bee8e (diff)
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 ........ Merged revisions 409568 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@409569 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/astobj2.c')
-rw-r--r--main/astobj2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/astobj2.c b/main/astobj2.c
index ec80f6489..fb9c5d1da 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;
}