From adb221babe7c2dd604a849161e92ebdf0fd0b2a7 Mon Sep 17 00:00:00 2001 From: hongliang Date: Fri, 31 Oct 2014 15:23:46 +0800 Subject: [PATCH] init arg1 as false for safety --- .../frameworks/runtime-src/Classes/runtime/Runtime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/lua-template-runtime/frameworks/runtime-src/Classes/runtime/Runtime.cpp b/templates/lua-template-runtime/frameworks/runtime-src/Classes/runtime/Runtime.cpp index 279ecc3399..856dbec457 100644 --- a/templates/lua-template-runtime/frameworks/runtime-src/Classes/runtime/Runtime.cpp +++ b/templates/lua-template-runtime/frameworks/runtime-src/Classes/runtime/Runtime.cpp @@ -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);