diff --git a/ui/vnc.c b/ui/vnc.c index f183d00deb..f2f5dc10af 100644 --- a/ui/vnc.c +++ b/ui/vnc.c @@ -224,7 +224,7 @@ static VncServerInfo *vnc_server_info_get(VncDisplay *vd) VncServerInfo *info; Error *err = NULL; - info = g_malloc(sizeof(*info)); + info = g_malloc0(sizeof(*info)); vnc_init_basic_info_from_server_addr(vd->lsock, qapi_VncServerInfo_base(info), &err); info->has_auth = true;