fix: some cppcheck errors (#4942)

This commit is contained in:
Peter Feerick
2024-05-02 13:13:16 +10:00
committed by GitHub
parent e48e82a8dc
commit e72f1d2da1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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