[CRIU] [PATCH 2/5] sk-inet: Init addr_size variable

Cyrill Gorcunov gorcunov at openvz.org
Sat Jul 28 08:13:30 EDT 2012


Since we've BUG_ON(1) here so this is
not a problem, but lets make compiler happy.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 sk-inet.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sk-inet.c b/sk-inet.c
index fbf85f1..4696565 100644
--- a/sk-inet.c
+++ b/sk-inet.c
@@ -406,7 +406,7 @@ int inet_bind(int sk, struct inet_sk_info *ii)
 		struct sockaddr_in	v4;
 		struct sockaddr_in6	v6;
 	} addr;
-	int addr_size;
+	int addr_size = 0;
 
 
 	memzero(&addr, sizeof(addr));
@@ -441,7 +441,7 @@ int inet_connect(int sk, struct inet_sk_info *ii)
 		struct sockaddr_in	v4;
 		struct sockaddr_in6	v6;
 	} addr;
-	int addr_size;
+	int addr_size = 0;
 
 
 	memzero(&addr, sizeof(addr));
-- 
1.7.7.6



More information about the CRIU mailing list