[asterisk-commits] kmoore: branch 1.8 r409566 - /branches/1.8/main/astobj2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 4 10:50:33 CST 2014


Author: kmoore
Date: Tue Mar  4 10:50:24 2014
New Revision: 409566

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=409566
Log:
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.

Modified:
    branches/1.8/main/astobj2.c

Modified: branches/1.8/main/astobj2.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/astobj2.c?view=diff&rev=409566&r1=409565&r2=409566
==============================================================================
--- branches/1.8/main/astobj2.c (original)
+++ branches/1.8/main/astobj2.c Tue Mar  4 10:50:24 2014
@@ -126,6 +126,7 @@
 				"bad magic number for object %p. Object is likely destroyed.\n",
 				user_data);
 		}
+		ast_assert(0);
 		return NULL;
 	}
 




More information about the asterisk-commits mailing list