aboutsummaryrefslogtreecommitdiffstats
path: root/pbx/pbx_ael.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-25 17:06:37 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-25 17:06:37 +0000
commit62f50212c0360b82ba37a009d6560be03a4bdb9d (patch)
tree907bad45c8bf644473e2c8fec05ed70e07c56b79 /pbx/pbx_ael.c
parentccdab0c0a27b4231edb08ef77385d592687b48b1 (diff)
fix variable declaration in the middle of a block
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22413 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx/pbx_ael.c')
-rw-r--r--pbx/pbx_ael.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pbx/pbx_ael.c b/pbx/pbx_ael.c
index 8ecacfb13..d2fdd7297 100644
--- a/pbx/pbx_ael.c
+++ b/pbx/pbx_ael.c
@@ -1080,8 +1080,9 @@ static void check_goto(pval *item)
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 *find_label_in_current_context(char *exten, char *label)
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;