[lua] Fix maybe-uninitialized warning in generated code
This commit is contained in:
parent
98b8578731
commit
fa2f9dc5da
1 changed files with 1 additions and 1 deletions
|
|
@ -1796,7 +1796,7 @@ SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State *L,int index,void **ptr,swig_type
|
|||
|
||||
SWIGRUNTIME void* SWIG_Lua_MustGetPtr(lua_State *L,int index,swig_type_info *type,int flags,
|
||||
int argnum,const char *func_name){
|
||||
void *result;
|
||||
void *result = 0;
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,index,&result,type,flags))){
|
||||
luaL_error (L,"Error in %s, expected a %s at argument number %d\n",
|
||||
func_name,(type && type->str)?type->str:"void*",argnum);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue