mirror of
https://github.com/lxsang/silk.git
synced 2024-12-25 12:38:21 +01:00
reset slice data memory at creation
This commit is contained in:
parent
f4dde9202f
commit
356b96dfcc
@ -53,7 +53,7 @@ void lua_new_slice(lua_State*L, int n)
|
||||
a->magic = lua_slice_magic();
|
||||
luaL_getmetatable(L, SLICE);
|
||||
lua_setmetatable(L, -2);
|
||||
|
||||
(void)memset(a->data,0,n);
|
||||
a->len = n;
|
||||
}
|
||||
slice_t * lua_check_slice(lua_State *L, int idx)
|
||||
|
Loading…
Reference in New Issue
Block a user