init arg1 as false for safety

This commit is contained in:
hongliang 2014-10-31 15:23:46 +08:00
parent 0d006ce6d1
commit adb221babe
1 changed files with 1 additions and 1 deletions

View File

@ -1074,7 +1074,7 @@ int lua_cocos2dx_runtime_addSearchPath(lua_State* tolua_S)
if (argc == 1 || argc == 2)
{
std::string arg0;
bool arg1;
bool arg1 = false;
ok &= luaval_to_std_string(tolua_S, 2,&arg0);