[libvirt] [PATCH 16/18] vz: remove exlicitly setting zeros in dumping graphics

Maxim Nestratov mnestratov at virtuozzo.com
Sat Jun 25 19:43:00 UTC 2016


20.04.2016 17:05, Nikolay Shirokovskiy пишет:

> Allocation will do this job. Also we don't use the explicit setting
> in other places.
>
> Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy at virtuozzo.com>
> ---
>   src/vz/vz_sdk.c | 5 -----
>   1 file changed, 5 deletions(-)
>
> diff --git a/src/vz/vz_sdk.c b/src/vz/vz_sdk.c
> index 322b316..2e2cdfd 100644
> --- a/src/vz/vz_sdk.c
> +++ b/src/vz/vz_sdk.c
> @@ -1176,11 +1176,6 @@ prlsdkAddVNCInfo(PRL_HANDLE sdkdom, virDomainDefPtr def)
>       gr->data.vnc.autoport = (vncMode == PRD_AUTO);
>       gr->type = VIR_DOMAIN_GRAPHICS_TYPE_VNC;
>       gr->data.vnc.port = port;
> -    gr->data.vnc.keymap = NULL;
> -    gr->data.vnc.socket = NULL;
> -    gr->data.vnc.auth.passwd = NULL;
> -    gr->data.vnc.auth.expires = false;
> -    gr->data.vnc.auth.connected = 0;
>   
>       if (VIR_ALLOC(gr->listens) < 0)
>           goto error;

ACK




More information about the libvir-list mailing list