diff options
Diffstat (limited to 'pbx')
-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); |