diff --git a/unix/Xvnc/programs/Xserver/hw/vnc/randr.c b/unix/Xvnc/programs/Xserver/hw/vnc/randr.c index a708bd5ab..6275257c7 100644 --- a/unix/Xvnc/programs/Xserver/hw/vnc/randr.c +++ b/unix/Xvnc/programs/Xserver/hw/vnc/randr.c @@ -363,6 +363,7 @@ static int vncScreenSetSize(ScreenPtr pScreen, CARD16 width, CARD16 height, for (j = 0; j < crtc->numOutputs; j++) { rfbScreenInfo screen; + memset(&screen, 0, sizeof(rfbScreenInfo)); screen.output = crtc->outputs[j]; screen.s.w = min(crtc->mode->mode.width, width - crtc->x); screen.s.h = min(crtc->mode->mode.height, height - crtc->y);