[svn-commits] mnicholson: branch 1.8 r341809 - /branches/1.8/pbx/pbx_lua.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Oct 21 11:42:03 CDT 2011


Author: mnicholson
Date: Fri Oct 21 11:41:59 2011
New Revision: 341809

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=341809
Log:
only process args that exist

ASTERISK-18395

Modified:
    branches/1.8/pbx/pbx_lua.c

Modified: branches/1.8/pbx/pbx_lua.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/pbx/pbx_lua.c?view=diff&rev=341809&r1=341808&r2=341809
==============================================================================
--- branches/1.8/pbx/pbx_lua.c (original)
+++ branches/1.8/pbx/pbx_lua.c Fri Oct 21 11:41:59 2011
@@ -599,7 +599,7 @@
 	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;
 	}




More information about the svn-commits mailing list