projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3612563
)
qemu-socket: zero-initialize SocketAddress
author
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 24 Jun 2013 06:39:44 +0000
(08:39 +0200)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Fri, 28 Jun 2013 18:10:33 +0000
(22:10 +0400)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
util/qemu-sockets.c
patch
|
blob
|
history
diff --git
a/util/qemu-sockets.c
b/util/qemu-sockets.c
index 96eca2ad95b133d60d8072a34b286c9c152781a2..86fb09c0c4f23bdea3c3e1d0d912faab8d7c0fac 100644
(file)
--- a/
util/qemu-sockets.c
+++ b/
util/qemu-sockets.c
@@
-848,9
+848,9
@@
int unix_nonblocking_connect(const char *path,
SocketAddress *socket_parse(const char *str, Error **errp)
{
- SocketAddress *addr
= NULL
;
+ SocketAddress *addr;
- addr = g_new(SocketAddress, 1);
+ addr = g_new
0
(SocketAddress, 1);
if (strstart(str, "unix:", NULL)) {
if (str[5] == '\0') {
error_setg(errp, "invalid Unix socket address");