Signed-off-by: Gerd Hoffmann <kra...@redhat.com>
---
 util/qemu-sockets.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c
index fdd8dc4..364bd8c 100644
--- a/util/qemu-sockets.c
+++ b/util/qemu-sockets.c
@@ -855,7 +855,7 @@ SocketAddress *socket_parse(const char *str, Error **errp)
 {
     SocketAddress *addr = NULL;
 
-    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");
-- 
1.7.9.7


Reply via email to