diff options
| author | Mat Martineau <[email protected]> | 2022-06-28 01:02:43 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-06-29 03:45:43 +0000 |
| commit | fd37c2ecb21f7aee04ccca5f561469f07d00063c (patch) | |
| tree | fece7c77ccddb8213d8362ed1f4921156be0a58c /net/tipc/socket.c | |
| parent | mptcp: fix conflict with <netinet/in.h> (diff) | |
| download | kernel-fd37c2ecb21f7aee04ccca5f561469f07d00063c.tar.gz kernel-fd37c2ecb21f7aee04ccca5f561469f07d00063c.zip | |
selftests: mptcp: Initialize variables to quiet gcc 12 warnings
In a few MPTCP selftest tools, gcc 12 complains that the 'sock' variable
might be used uninitialized. This is a false positive because the only
code path that could lead to uninitialized access is where getaddrinfo()
fails, but the local xgetaddrinfo() wrapper exits if such a failure
occurs.
Initialize the 'sock' variable anyway to allow the tools to build with
gcc 12.
Fixes: 048d19d444be ("mptcp: add basic kselftest for mptcp")
Acked-by: Paolo Abeni <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/tipc/socket.c')
0 files changed, 0 insertions, 0 deletions
