[asterisk-commits] trunk r22413 - /trunk/pbx/pbx_ael.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Apr 25 10:06:38 MST 2006


Author: rizzo
Date: Tue Apr 25 12:06:37 2006
New Revision: 22413

URL: http://svn.digium.com/view/asterisk?rev=22413&view=rev
Log:
fix variable declaration in the middle of a block


Modified:
    trunk/pbx/pbx_ael.c

Modified: trunk/pbx/pbx_ael.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx/pbx_ael.c?rev=22413&r1=22412&r2=22413&view=diff
==============================================================================
--- trunk/pbx/pbx_ael.c (original)
+++ trunk/pbx/pbx_ael.c Tue Apr 25 12:06:37 2006
@@ -1080,8 +1080,9 @@
 								struct pval *that_other_context = find_context(incl_context);
 								if (that_other_context) {
 									struct pval *context_save = current_context;
+									struct pval *x3;
 									current_context = that_other_context;
-									struct pval *x3 = find_label_in_current_context((char *)item->u1.list->next->u1.str, (char *)item->u1.list->next->next->u1.str);
+									x3 = find_label_in_current_context((char *)item->u1.list->next->u1.str, (char *)item->u1.list->next->next->u1.str);
 									current_context = context_save;
 									if (x3) {
 										found = x3;
@@ -1549,8 +1550,9 @@
 				struct pval *that_context = find_context(incl_context);
 				if (that_context) {
 					struct pval *context_save = current_context;
+					struct pval *x3;
 					current_context = that_context;
-					struct pval *x3 = find_label_in_current_context(exten, label);
+					x3 = find_label_in_current_context(exten, label);
 					current_context = context_save;
 					if (x3) {
 						return x3;



More information about the asterisk-commits mailing list