projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04f68a8
)
Fix warning reported by clang (possible bug in Settings lua api)
author
sfan5
<sfan5@live.de>
Wed, 21 Dec 2016 09:20:06 +0000
(10:20 +0100)
committer
sfan5
<sfan5@live.de>
Wed, 21 Dec 2016 09:20:06 +0000
(10:20 +0100)
src/script/lua_api/l_settings.cpp
patch
|
blob
|
history
diff --git
a/src/script/lua_api/l_settings.cpp
b/src/script/lua_api/l_settings.cpp
index ea3d508575a540f8e23ee0ccf835cdbf089259ad..d3fe0300533b0b2b0a99420de3f1cab57e606182 100644
(file)
--- 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);