aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/Xext/shape.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2017-12-10 23:57:35 +0100
committerMihai Moldovan <ionic@ionic.de>2017-12-28 00:17:54 +0100
commit6acbfab33133a92dbd7f128284d26f94bfeb1af2 (patch)
treea270c581d3268b20ef8527cffeb8ad91b26b9cf7 /nx-X11/programs/Xserver/Xext/shape.c
parentbc5f9a2363cb865fa1a8a1427d9320514e7d1889 (diff)
downloadnx-libs-6acbfab33133a92dbd7f128284d26f94bfeb1af2.tar.gz
nx-libs-6acbfab33133a92dbd7f128284d26f94bfeb1af2.tar.bz2
nx-libs-6acbfab33133a92dbd7f128284d26f94bfeb1af2.zip
reduce usage of uninitialised bytes
as reported by valgrind
Diffstat (limited to 'nx-X11/programs/Xserver/Xext/shape.c')
-rw-r--r--nx-X11/programs/Xserver/Xext/shape.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/nx-X11/programs/Xserver/Xext/shape.c b/nx-X11/programs/Xserver/Xext/shape.c
index 693495b57..48a3e952d 100644
--- a/nx-X11/programs/Xserver/Xext/shape.c
+++ b/nx-X11/programs/Xserver/Xext/shape.c
@@ -266,7 +266,7 @@ RegionPtr
CreateBoundingShape (pWin)
WindowPtr pWin;
{
- BoxRec extents;
+ BoxRec extents = {0};
extents.x1 = -wBorderWidth (pWin);
extents.y1 = -wBorderWidth (pWin);
@@ -279,7 +279,7 @@ RegionPtr
CreateClipShape (pWin)
WindowPtr pWin;
{
- BoxRec extents;
+ BoxRec extents = {0};
extents.x1 = 0;
extents.y1 = 0;
@@ -292,7 +292,7 @@ static int
ProcShapeQueryVersion (client)
register ClientPtr client;
{
- xShapeQueryVersionReply rep;
+ xShapeQueryVersionReply rep = {0};
REQUEST_SIZE_MATCH (xShapeQueryVersionReq);
memset(&rep, 0, sizeof(xShapeQueryVersionReply));
@@ -713,8 +713,8 @@ ProcShapeQueryExtents (client)
{
REQUEST(xShapeQueryExtentsReq);
WindowPtr pWin;
- xShapeQueryExtentsReply rep;
- BoxRec extents, *pExtents;
+ xShapeQueryExtentsReply rep = {0};
+ BoxRec extents = {0}, *pExtents;
RegionPtr region;
REQUEST_SIZE_MATCH (xShapeQueryExtentsReq);
@@ -919,8 +919,8 @@ SendShapeNotify (pWin, which)
int which;
{
ShapeEventPtr *pHead, pShapeEvent;
- xShapeNotifyEvent se;
- BoxRec extents;
+ xShapeNotifyEvent se = {0};
+ BoxRec extents = {0};
RegionPtr region;
BYTE shaped;
@@ -992,7 +992,7 @@ ProcShapeInputSelected (client)
WindowPtr pWin;
ShapeEventPtr pShapeEvent, *pHead;
int enabled;
- xShapeInputSelectedReply rep;
+ xShapeInputSelectedReply rep = {0};
REQUEST_SIZE_MATCH (xShapeInputSelectedReq);
pWin = LookupWindow (stuff->window, client);
@@ -1030,7 +1030,7 @@ ProcShapeGetRectangles (client)
{
REQUEST(xShapeGetRectanglesReq);
WindowPtr pWin;
- xShapeGetRectanglesReply rep;
+ xShapeGetRectanglesReply rep = {0};
xRectangle *rects;
int nrects, i;
RegionPtr region;