Merge pull request #1067 from urbit/proxy-wcon-zero-init

properly zero-initialize u3_wcon linked-list pointer
This commit is contained in:
Joe Bryan 2018-11-16 12:20:55 -05:00 committed by GitHub
commit a30ad3056b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2082,8 +2082,9 @@ static u3_wcon*
_proxy_wcon_new(u3_ward* rev_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->rev_u = rev_u;
won_u->nex_u = 0;
_proxy_wcon_link(won_u, rev_u);