fix the order in which for loops are expanded (issue #6810)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@15658 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2006-03-28 18:09:05 +00:00
parent 469e6d539a
commit 420f3d12aa

View File

@@ -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);