[asterisk-commits] mmichelson: trunk r87573 - /trunk/main/pbx.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 30 11:36:30 CDT 2007


Author: mmichelson
Date: Tue Oct 30 11:36:29 2007
New Revision: 87573

URL: http://svn.digium.com/view/asterisk?view=rev&rev=87573
Log:
Jumped the gun a bit in the RaiseException app. It would always return -1
since it checked for the existence of something that will never exist.


Modified:
    trunk/main/pbx.c

Modified: trunk/main/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/main/pbx.c?view=diff&rev=87573&r1=87572&r2=87573
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Tue Oct 30 11:36:29 2007
@@ -1301,7 +1301,7 @@
 		if (!ds)
 			return -1;
 		exception = ast_calloc(1, sizeof(struct pbx_exception));
-		if (!ds->data) {
+		if (!exception) {
 			ast_channel_datastore_free(ds);
 			return -1;
 		}




More information about the asterisk-commits mailing list