diff options
Diffstat (limited to 'testsuites/psxtests/psxhdrs/sys/socket/sendto.c')
-rw-r--r-- | testsuites/psxtests/psxhdrs/sys/socket/sendto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/sys/socket/sendto.c b/testsuites/psxtests/psxhdrs/sys/socket/sendto.c index 298d17f4ec..5050f1a0a5 100644 --- a/testsuites/psxtests/psxhdrs/sys/socket/sendto.c +++ b/testsuites/psxtests/psxhdrs/sys/socket/sendto.c @@ -44,11 +44,11 @@ ssize_t test(void); ssize_t test(void) { int sockfd = 4; - int buffer; + int buffer = 0; const void *buf = &buffer; size_t len = sizeof(buffer); int flags = 7; - struct sockaddr dest_addr; + struct sockaddr dest_addr = { 0 }; socklen_t addrlen = sizeof(dest_addr); return sendto(sockfd, buf, len, flags, &dest_addr, addrlen); |