fix: some cppcheck errors (#4942)
This commit is contained in:
@@ -1340,7 +1340,7 @@ void luaInit()
|
||||
#if defined(USE_BIN_ALLOCATOR)
|
||||
L = lua_newstate(bin_l_alloc, nullptr); //we use our own allocator!
|
||||
#elif defined(LUA_ALLOCATOR_TRACER)
|
||||
memclear(&lsScriptsTrace, sizeof(lsScriptsTrace);
|
||||
memclear(&lsScriptsTrace, sizeof(lsScriptsTrace));
|
||||
lsScriptsTrace.script = "lua_newstate(scripts)";
|
||||
L = lua_newstate(tracer_alloc, &lsScriptsTrace); //we use tracer allocator
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user