mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 07:34:07 +00:00
Fixed memset() arguments in lj_traceprofile.c
This commit is contained in:
parent
1e213ff3c0
commit
606d270826
@ -90,7 +90,7 @@ static void traceprofile_stop_timer()
|
|||||||
|
|
||||||
LUA_API void luaJIT_traceprofile_start(lua_State *L, int interval)
|
LUA_API void luaJIT_traceprofile_start(lua_State *L, int interval)
|
||||||
{
|
{
|
||||||
memset(&state, sizeof(state), 0);
|
memset(&state, 0, sizeof(state));
|
||||||
state.g = G(L);
|
state.g = G(L);
|
||||||
traceprofile_start_timer(interval);
|
traceprofile_start_timer(interval);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user