mirror of
https://github.com/urbit/shrub.git
synced 2024-12-23 02:41:35 +03:00
properly zero-initialize u3_wcon linked-list pointer
This commit is contained in:
parent
5191851946
commit
2ea9cb52fe
@ -2082,8 +2082,9 @@ static u3_wcon*
|
|||||||
_proxy_wcon_new(u3_ward* rev_u)
|
_proxy_wcon_new(u3_ward* rev_u)
|
||||||
{
|
{
|
||||||
u3_wcon* won_u = c3_malloc(sizeof(*won_u));
|
u3_wcon* won_u = c3_malloc(sizeof(*won_u));
|
||||||
won_u->rev_u = rev_u;
|
|
||||||
won_u->upt_u.data = won_u;
|
won_u->upt_u.data = won_u;
|
||||||
|
won_u->rev_u = rev_u;
|
||||||
|
won_u->nex_u = 0;
|
||||||
|
|
||||||
_proxy_wcon_link(won_u, rev_u);
|
_proxy_wcon_link(won_u, rev_u);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user