aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-28 18:09:05 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-28 18:09:05 +0000
commitb2118a4b83860289bb1e01d7685d92fe135e9374 (patch)
tree2b3760f7161cecd692f401b64d925e1f4a95d9b5 /pbx
parent21b7c333a99a905fddcac5ad38958163cc4f3cf3 (diff)
fix the order in which for loops are expanded (issue #6810)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@15658 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r--pbx/pbx_ael.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx/pbx_ael.c b/pbx/pbx_ael.c
index 4b758a61b..0ab588679 100644
--- a/pbx/pbx_ael.c
+++ b/pbx/pbx_ael.c
@@ -778,8 +778,8 @@ static int __build_step(const char *what, const char *name, const char *filename
*label = NULL;
/* Remember where the whileblock starts */
forblock = (*pos);
- build_step("for", margs, filename, lineno, con, exten, pos, fields->next->next->data, &fillin, label);
build_step("for", margs, filename, lineno, con, exten, pos, c, &fillin, label);
+ build_step("for", margs, filename, lineno, con, exten, pos, fields->next->next->data, &fillin, label);
/* Close the loop */
app = "Goto";
snprintf(margs, mlen, "%d", forstart);