diff --git a/CHANGES.current b/CHANGES.current index 0b7de2539..df57de6e7 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -5,3 +5,6 @@ See the RELEASENOTES file for a summary of changes in each release. Version 2.0.6 (in progress) =========================== +2012-04-25: wsfulton + [Lua] Fix uninitialised variable in SWIGTYPE **OUTPUT typemaps as reported by Jim Anderson. + diff --git a/Lib/lua/typemaps.i b/Lib/lua/typemaps.i index 180d17fd6..63cb49a0d 100644 --- a/Lib/lua/typemaps.i +++ b/Lib/lua/typemaps.i @@ -557,7 +557,8 @@ ptr=nil -- the iMath* will be GC'ed as normal */ %typemap(in,numinputs=0) SWIGTYPE** OUTPUT ($*ltype temp) -%{ $1 = &temp; %} +%{ temp = ($*ltype)0; + $1 = &temp; %} %typemap(argout) SWIGTYPE** OUTPUT %{SWIG_NewPointerObj(L,*$1,$*descriptor,1); SWIG_arg++; %}