net: The third parameter of getsockname should be initialized

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
zhanghailiang 2014-11-17 13:54:05 +08:00 committed by Stefan Hajnoczi
parent 1aba4be97e
commit ed6273e26f

View File

@ -352,7 +352,7 @@ static NetSocketState *net_socket_fd_init_dgram(NetClientState *peer,
{ {
struct sockaddr_in saddr; struct sockaddr_in saddr;
int newfd; int newfd;
socklen_t saddr_len; socklen_t saddr_len = sizeof(saddr);
NetClientState *nc; NetClientState *nc;
NetSocketState *s; NetSocketState *s;