diff options
author | Matthew Nicholson <mnicholson@digium.com> | 2011-10-21 16:42:56 +0000 |
---|---|---|
committer | Matthew Nicholson <mnicholson@digium.com> | 2011-10-21 16:42:56 +0000 |
commit | f39cbc004d8ed8a14c8be57a6afa4f54585d49f7 (patch) | |
tree | 5079ca4ba25330f9b7215d1fb39d4bbc8042543f /pbx/pbx_lua.c | |
parent | 9c7a01754076372f1011aea67c0047416536edde (diff) |
only process args that exist
ASTERISK-18395
........
Merged revisions 341809 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 341810 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@341811 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/pbx_lua.c')
-rw-r--r-- | pbx/pbx_lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx/pbx_lua.c b/pbx/pbx_lua.c index db6090a60..0dccfe644 100644 --- a/pbx/pbx_lua.c +++ b/pbx/pbx_lua.c @@ -669,7 +669,7 @@ static void lua_concat_args(lua_State *L, int start, int nargs) { int concat = 0; int i = start + 1; - if (!lua_isnil(L, start)) { + if (start <= nargs && !lua_isnil(L, start)) { lua_pushvalue(L, start); concat += 1; } |