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));
|
nlg = malloc(sizeof(*nlg));
|
||||||
if (!nlg)
|
if (!nlg)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
nlg->id = 0;
|
||||||
|
|
||||||
err = -ENOMEM;
|
err = -ENOMEM;
|
||||||
nlg->buf = malloc(mnl_ideal_socket_buffer_size());
|
nlg->buf = malloc(mnl_ideal_socket_buffer_size());
|
||||||
|
|
Loading…
Reference in a new issue