mirror of
https://github.com/urbit/shrub.git
synced 2024-12-22 18:31:44 +03:00
Merge pull request #1067 from urbit/proxy-wcon-zero-init
properly zero-initialize u3_wcon linked-list pointer
This commit is contained in:
commit
a30ad3056b
@ -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