From cc7c31a5bc44ab0010997e86c0a8c9f5f832b398 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Wed, 21 Dec 2016 10:20:06 +0100 Subject: Fix warning reported by clang (possible bug in Settings lua api) --- src/script/lua_api/l_settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/script/lua_api/l_settings.cpp b/src/script/lua_api/l_settings.cpp index ea3d50857..d3fe03005 100644 --- a/src/script/lua_api/l_settings.cpp +++ b/src/script/lua_api/l_settings.cpp @@ -194,7 +194,7 @@ void LuaSettings::Register(lua_State* L) int LuaSettings::create_object(lua_State* L) { NO_MAP_LOCK_REQUIRED; - bool write_allowed; + bool write_allowed = true; const char* filename = luaL_checkstring(L, 1); CHECK_SECURE_PATH_POSSIBLE_WRITE(L, filename, &write_allowed); LuaSettings* o = new LuaSettings(filename, write_allowed); -- cgit v1.2.3