netlink: initialize mostly unused field
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
0bf1f7a3e8
commit
e5b08c2849
|
@ -737,6 +737,7 @@ static struct mnlg_socket *mnlg_socket_open(const char *family_name, uint8_t ver
|
|||
nlg = malloc(sizeof(*nlg));
|
||||
if (!nlg)
|
||||
return NULL;
|
||||
nlg->id = 0;
|
||||
|
||||
err = -ENOMEM;
|
||||
nlg->buf = malloc(mnl_ideal_socket_buffer_size());
|
||||
|
|
Loading…
Reference in a new issue