aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/Xext/shm.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2017-02-25 02:17:18 +0100
committerUlrich Sibiller <uli42@gmx.de>2017-03-02 12:22:40 +0100
commit3e315cd17a519dbcafff18d4294a6f7bb8070767 (patch)
treee8950e052bb5ee4328a052a9cf04efc847c47eff /nx-X11/programs/Xserver/Xext/shm.c
parent9d41e84ea9baf215c6de11224dc2597cd37359dc (diff)
downloadnx-libs-3e315cd17a519dbcafff18d4294a6f7bb8070767.tar.gz
nx-libs-3e315cd17a519dbcafff18d4294a6f7bb8070767.tar.bz2
nx-libs-3e315cd17a519dbcafff18d4294a6f7bb8070767.zip
Fix "uninitialised byte(s)" complaints from valgrind
Diffstat (limited to 'nx-X11/programs/Xserver/Xext/shm.c')
-rw-r--r--nx-X11/programs/Xserver/Xext/shm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/Xext/shm.c b/nx-X11/programs/Xserver/Xext/shm.c
index e3fa3a24e..263adc3df 100644
--- a/nx-X11/programs/Xserver/Xext/shm.c
+++ b/nx-X11/programs/Xserver/Xext/shm.c
@@ -660,6 +660,7 @@ ProcPanoramiXShmGetImage(ClientPtr client)
for(i = 1; i < PanoramiXNumScreens; i++)
VERIFY_DRAWABLE(drawables[i], draw->info[i].id, client);
+ memset(&xgi, 0, sizeof(xShmGetImageReply));
xgi.visual = wVisual(((WindowPtr)pDraw));
xgi.type = X_Reply;
xgi.length = 0;
@@ -913,6 +914,7 @@ ProcShmPutImage(client)
{
xShmCompletionEvent ev;
+ memset(&ev, 0, sizeof(xShmCompletionEvent));
ev.type = ShmCompletionCode;
ev.drawable = stuff->drawable;
ev.minorEvent = X_ShmPutImage;
@@ -947,6 +949,9 @@ ProcShmGetImage(client)
}
VERIFY_DRAWABLE(pDraw, stuff->drawable, client);
VERIFY_SHMPTR(stuff->shmseg, stuff->offset, TRUE, shmdesc, client);
+
+ memset(&xgi, 0, sizeof(xShmGetImageReply));
+
if (pDraw->type == DRAWABLE_WINDOW)
{
if( /* check for being viewable */