diff options
author | Matthew Nicholson <mnicholson@digium.com> | 2011-03-04 19:38:59 +0000 |
---|---|---|
committer | Matthew Nicholson <mnicholson@digium.com> | 2011-03-04 19:38:59 +0000 |
commit | f6c2ebff45deaba14e450c09c6deb9d9500c88a2 (patch) | |
tree | 5c303bba55d56c1d0f33ae5bc102ffd95112f095 /pbx/pbx_lua.c | |
parent | 3ef45303e13ca300a92dc6ead0720f87528330e9 (diff) |
Merged revisions 309585 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
................
r309585 | mnicholson | 2011-03-04 13:38:25 -0600 (Fri, 04 Mar 2011) | 9 lines
Merged revisions 309584 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2
........
r309584 | mnicholson | 2011-03-04 13:37:13 -0600 (Fri, 04 Mar 2011) | 2 lines
Restore mysterious lua_pushvalue() call removed in r309494. The mystery has been solved.
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@309587 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/pbx_lua.c')
-rw-r--r-- | pbx/pbx_lua.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pbx/pbx_lua.c b/pbx/pbx_lua.c index a98d8a895..c874c7383 100644 --- a/pbx/pbx_lua.c +++ b/pbx/pbx_lua.c @@ -794,6 +794,10 @@ static int lua_sort_extensions(lua_State *L) int context_name = context - 1; int context_order; + /* copy the context_name to be used as the key for the + * context_order table in the extensions_order table later */ + lua_pushvalue(L, context_name); + /* create the context_order table */ lua_newtable(L); context_order = lua_gettop(L); |