mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 09:50:09 +01:00
platform: no need to initialize nla sockaddr parameter to nl_recv()
We always call nl_recv() in a loop. If it would be necessary to clear the variable, then it would need to happen inside the loop. But it's not necessary.
This commit is contained in:
parent
dd3dffb1b0
commit
d73594682f
2 changed files with 2 additions and 2 deletions
|
|
@ -9040,7 +9040,7 @@ event_handler_recvmsgs(NMPlatform *platform, gboolean handle_events)
|
|||
gboolean interrupted = FALSE;
|
||||
struct nlmsghdr *hdr;
|
||||
WaitForNlResponseResult seq_result;
|
||||
struct sockaddr_nl nla = {0};
|
||||
struct sockaddr_nl nla;
|
||||
struct ucred creds;
|
||||
gboolean creds_has;
|
||||
unsigned char *buf;
|
||||
|
|
|
|||
|
|
@ -1171,7 +1171,7 @@ nl_recvmsgs(struct nl_sock *sk, const struct nl_cb *cb)
|
|||
int n, nmerr = 0, multipart = 0, interrupted = 0, nrecv = 0;
|
||||
gs_free unsigned char *buf = NULL;
|
||||
struct nlmsghdr *hdr;
|
||||
struct sockaddr_nl nla = {0};
|
||||
struct sockaddr_nl nla;
|
||||
struct ucred creds;
|
||||
gboolean creds_has;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue