[asterisk-commits] mnicholson: branch 10 r341810 - in /branches/10: ./ pbx/pbx_lua.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Oct 21 11:42:36 CDT 2011


Author: mnicholson
Date: Fri Oct 21 11:42:33 2011
New Revision: 341810

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

ASTERISK-18395
........

Merged revisions 341809 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/10/   (props changed)
    branches/10/pbx/pbx_lua.c

Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/10/pbx/pbx_lua.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/pbx/pbx_lua.c?view=diff&rev=341810&r1=341809&r2=341810
==============================================================================
--- branches/10/pbx/pbx_lua.c (original)
+++ branches/10/pbx/pbx_lua.c Fri Oct 21 11:42:33 2011
@@ -669,7 +669,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 asterisk-commits mailing list