Commit afde3f8b authored by Gerd Hoffmann's avatar Gerd Hoffmann Committed by Michael Tokarev

qemu-socket: zero-initialize SocketAddress

Signed-off-by: default avatarGerd Hoffmann <>
Reviewed-by: default avatarLaszlo Ersek <>
Signed-off-by: default avatarMichael Tokarev <>
parent 36125631
......@@ -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_new0(SocketAddress, 1);
if (strstart(str, "unix:", NULL)) {
if (str[5] == '\0') {
error_setg(errp, "invalid Unix socket address");
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