aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Medhurst <tixy@linaro.org>2015-08-03 17:49:46 +0100
committerAmit Pundir <amit.pundir@linaro.org>2015-09-10 22:06:43 +0530
commit2729973c2c520e22c19590318cb6af6cd27d0c95 (patch)
tree87a9fdd97d9ab46d3183fc824e357298a18ff943
parent6c74e7d3a2cbea84d9a72ddabedbad6243e950f4 (diff)
tcp: Silence warning: ‘in’ may be used uninitialized
Initialise 'in' to avoid... net/ipv4/tcp.c: In function 'tcp_nuke_addr': net/ipv4/tcp.c:3208:11: warning: 'in' may be used uninitialized in this function [-Wmaybe-uninitialized] if (in->s_addr != s4 && ^ Signed-off-by: Jon Medhurst <tixy@linaro.org>
-rw-r--r--net/ipv4/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index 3b5e71702408..b91859272e6c 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -3167,7 +3167,7 @@ int tcp_nuke_addr(struct net *net, struct sockaddr *addr)
int family = addr->sa_family;
unsigned int bucket;
- struct in_addr *in;
+ struct in_addr *in = NULL;
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
struct in6_addr *in6 = NULL;
#endif