From 6acbfab33133a92dbd7f128284d26f94bfeb1af2 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Sun, 10 Dec 2017 23:57:35 +0100 Subject: reduce usage of uninitialised bytes as reported by valgrind --- nx-X11/programs/Xserver/Xext/dpms.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nx-X11/programs/Xserver/Xext/dpms.c') diff --git a/nx-X11/programs/Xserver/Xext/dpms.c b/nx-X11/programs/Xserver/Xext/dpms.c index ea9781353..e05a70621 100644 --- a/nx-X11/programs/Xserver/Xext/dpms.c +++ b/nx-X11/programs/Xserver/Xext/dpms.c @@ -101,7 +101,7 @@ ProcDPMSGetVersion(client) register ClientPtr client; { /* REQUEST(xDPMSGetVersionReq); */ - xDPMSGetVersionReply rep; + xDPMSGetVersionReply rep = {0}; REQUEST_SIZE_MATCH(xDPMSGetVersionReq); @@ -123,7 +123,7 @@ static int ProcDPMSCapable(register ClientPtr client) { /* REQUEST(xDPMSCapableReq); */ - xDPMSCapableReply rep; + xDPMSCapableReply rep = {0}; REQUEST_SIZE_MATCH(xDPMSCapableReq); @@ -144,7 +144,7 @@ ProcDPMSGetTimeouts(client) register ClientPtr client; { /* REQUEST(xDPMSGetTimeoutsReq); */ - xDPMSGetTimeoutsReply rep; + xDPMSGetTimeoutsReply rep = {0}; REQUEST_SIZE_MATCH(xDPMSGetTimeoutsReq); @@ -258,7 +258,7 @@ static int ProcDPMSInfo(register ClientPtr client) { /* REQUEST(xDPMSInfoReq); */ - xDPMSInfoReply rep; + xDPMSInfoReply rep = {0}; REQUEST_SIZE_MATCH(xDPMSInfoReq); -- cgit v1.2.3