mirror of
https://github.com/minetest/minetest.git
synced 2024-12-24 23:22:24 +01:00
Fix uninitialized variable error
If you run minetest with valgrind, you'll quickly notice uninitialized jump depend error messages that point to s_base.cpp:131. This commit fixes those.
This commit is contained in:
parent
b8a8be9c86
commit
ba3ff5ef39
@ -103,6 +103,11 @@ ScriptApiBase::ScriptApiBase()
|
|||||||
lua_pushstring(m_luastack, porting::getPlatformName());
|
lua_pushstring(m_luastack, porting::getPlatformName());
|
||||||
lua_setglobal(m_luastack, "PLATFORM");
|
lua_setglobal(m_luastack, "PLATFORM");
|
||||||
|
|
||||||
|
// m_secure gets set to true inside
|
||||||
|
// ScriptApiSecurity::initializeSecurity(), if neccessary.
|
||||||
|
// Default to false otherwise
|
||||||
|
m_secure = false;
|
||||||
|
|
||||||
m_server = NULL;
|
m_server = NULL;
|
||||||
m_environment = NULL;
|
m_environment = NULL;
|
||||||
m_guiengine = NULL;
|
m_guiengine = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user