diff options
author | Tim Prouty <tprouty@samba.org> | 2009-03-04 12:59:16 -0800 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2009-03-04 12:59:16 -0800 |
commit | f9636b0c01b962d2915895ef7125eed955423ded (patch) | |
tree | 36763df2e27dd4d3667283a1f47155df309b3b8c /lib/socket_wrapper | |
parent | 5a9f668dabb62efd70054dc35d19c60d027793b5 (diff) | |
download | samba-f9636b0c01b962d2915895ef7125eed955423ded.tar.gz samba-f9636b0c01b962d2915895ef7125eed955423ded.tar.xz samba-f9636b0c01b962d2915895ef7125eed955423ded.zip |
socket wrapper: Fix 'might be used uninitialized' warning
Diffstat (limited to 'lib/socket_wrapper')
-rw-r--r-- | lib/socket_wrapper/socket_wrapper.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c index f9ef48e4d66..8ad9e1d93ea 100644 --- a/lib/socket_wrapper/socket_wrapper.c +++ b/lib/socket_wrapper/socket_wrapper.c @@ -831,11 +831,11 @@ static uint8_t *swrap_packet_init(struct timeval *tval, size_t icmp_hdr_len = 0; size_t icmp_truncate_len = 0; uint8_t protocol = 0, icmp_protocol = 0; - const struct sockaddr_in *src_in; - const struct sockaddr_in *dest_in; + const struct sockaddr_in *src_in = NULL; + const struct sockaddr_in *dest_in = NULL; #ifdef HAVE_IPV6 - const struct sockaddr_in6 *src_in6; - const struct sockaddr_in6 *dest_in6; + const struct sockaddr_in6 *src_in6 = NULL; + const struct sockaddr_in6 *dest_in6 = NULL; #endif uint16_t src_port; uint16_t dest_port; |