projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1aba4be
)
net: The third parameter of getsockname should be initialized
author
zhanghailiang
<zhang.zhanghailiang@huawei.com>
Mon, 17 Nov 2014 05:54:05 +0000
(13:54 +0800)
committer
Stefan Hajnoczi
<stefanha@redhat.com>
Tue, 18 Nov 2014 15:04:35 +0000
(15:04 +0000)
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
net/socket.c
patch
|
blob
|
history
diff --git
a/net/socket.c
b/net/socket.c
index fb21e20a54caacb8e612f118966bfc7e77f954da..ca4b8ba2b3a117cdbfee94b9e0b03b4a25aae0a6 100644
(file)
--- a/
net/socket.c
+++ b/
net/socket.c
@@
-352,7
+352,7
@@
static NetSocketState *net_socket_fd_init_dgram(NetClientState *peer,
{
struct sockaddr_in saddr;
int newfd;
- socklen_t saddr_len;
+ socklen_t saddr_len
= sizeof(saddr)
;
NetClientState *nc;
NetSocketState *s;