diff options
author | Chris Johns <chrisj@rtems.org> | 2022-06-20 12:04:43 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2022-06-21 10:21:13 +1000 |
commit | 6b2c5b5da1a0394c9ffa81fc55e73920be9f6bff (patch) | |
tree | 9009f1b3038a36ecd7c3ada3170c4603aca36d9d /testsuites/psxtests/psxhdrs/sys/socket/getsockopt.c | |
parent | jffs2: Update baseline version to Linux v5.9 (diff) | |
download | rtems-6b2c5b5da1a0394c9ffa81fc55e73920be9f6bff.tar.bz2 |
testsuite: Fix gcc 12 warnings
Diffstat (limited to 'testsuites/psxtests/psxhdrs/sys/socket/getsockopt.c')
-rw-r--r-- | testsuites/psxtests/psxhdrs/sys/socket/getsockopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuites/psxtests/psxhdrs/sys/socket/getsockopt.c b/testsuites/psxtests/psxhdrs/sys/socket/getsockopt.c index 0ecf27dda5..e0cd442441 100644 --- a/testsuites/psxtests/psxhdrs/sys/socket/getsockopt.c +++ b/testsuites/psxtests/psxhdrs/sys/socket/getsockopt.c @@ -48,7 +48,7 @@ int test(void) int optname = 67; int value; void *optval = &value; - socklen_t optlen; + socklen_t optlen = { 0 }; return getsockopt(sockfd, level, optname, optval, &optlen); } |