Commit ba85bf30 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

sk-inet: Init addr_size variable

Since we've BUG_ON(1) here so this is
not a problem, but lets make compiler happy.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent bcb625b8
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment