aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2016-12-21 10:20:06 +0100
committersfan5 <sfan5@live.de>2016-12-21 10:20:06 +0100
commitcc7c31a5bc44ab0010997e86c0a8c9f5f832b398 (patch)
treeeea5721bccc12096bc4d6a929834f2174ddedf98 /src/script
parent04f68a87eecbde928e0dad7fcb9907657f75d457 (diff)
downloadminetest-cc7c31a5bc44ab0010997e86c0a8c9f5f832b398.tar.gz
minetest-cc7c31a5bc44ab0010997e86c0a8c9f5f832b398.tar.bz2
minetest-cc7c31a5bc44ab0010997e86c0a8c9f5f832b398.zip
Fix warning reported by clang (possible bug in Settings lua api)
Diffstat (limited to 'src/script')
-rw-r--r--src/script/lua_api/l_settings.cpp2
1 files changed, 1 insertions, 1 deletions
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);