Skip to content
Snippets Groups Projects
Commit ba3ff5ef authored by est31's avatar est31
Browse files

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.
parent b8a8be9c
No related branches found
No related tags found
No related merge requests found
......@@ -103,6 +103,11 @@ ScriptApiBase::ScriptApiBase()
lua_pushstring(m_luastack, porting::getPlatformName());
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_environment = NULL;
m_guiengine = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment