[asterisk-commits] tilghman: branch 1.4 r85687 - /branches/1.4/apps/app_stack.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Oct 15 15:29:35 CDT 2007


Author: tilghman
Date: Mon Oct 15 15:29:35 2007
New Revision: 85687

URL: http://svn.digium.com/view/asterisk?view=rev&rev=85687
Log:
Don't execute a gosub if the arguments is zero-len (not just NULL)
Reported by davevg
Fixed by me
Closes issue #10985

Modified:
    branches/1.4/apps/app_stack.c

Modified: branches/1.4/apps/app_stack.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_stack.c?view=diff&rev=85687&r1=85686&r2=85687
==============================================================================
--- branches/1.4/apps/app_stack.c (original)
+++ branches/1.4/apps/app_stack.c Mon Oct 15 15:29:35 2007
@@ -138,10 +138,10 @@
 	label2 = args;
 
 	if (pbx_checkcondition(condition)) {
-		if (label1) {
+		if (!ast_strlen_zero(label1)) {
 			res = gosub_exec(chan, label1);
 		}
-	} else if (label2) {
+	} else if (!ast_strlen_zero(label2)) {
 		res = gosub_exec(chan, label2);
 	}
 




More information about the asterisk-commits mailing list