aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-03-22 01:11:55 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-05-13 05:29:52 +0200
commitc2de5f1989d2c7276af5548a4b6cc35ed50f5e16 (patch)
tree6003375f49b170e2d806ec4b4cd282ffba337729 /nx-X11
parent021023202a2c96f37197cc64268003f4fb9e5ad5 (diff)
downloadnx-libs-c2de5f1989d2c7276af5548a4b6cc35ed50f5e16.tar.gz
nx-libs-c2de5f1989d2c7276af5548a4b6cc35ed50f5e16.tar.bz2
nx-libs-c2de5f1989d2c7276af5548a4b6cc35ed50f5e16.zip
hw/nxagent/NXmiexpose.c: Initialize all items of the newValues[] array.
Amends the following compiler warnings: ``` NXmiexpose.c:904:18: warning: ‘newValues[2].ptr’ may be used uninitialized in this function [-Wmaybe-uninitialized] gcval[i++].ptr = newValues[TILE].ptr; ^ NXmiexpose.c:914:24: warning: ‘newValues[1].val’ may be used uninitialized in this function [-Wmaybe-uninitialized] if ( pGC->fgPixel != newValues[FOREGROUND].val) { ^ ```
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c b/nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c
index 201d6d83b..ad75b43f8 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c
@@ -708,7 +708,7 @@ int what;
#define COUNT_BITS 8
ChangeGCVal gcval[7];
- ChangeGCVal newValues [COUNT_BITS];
+ ChangeGCVal newValues [COUNT_BITS] = {{ 0 }};
BITS32 gcmask, index, mask;
RegionRec prgnWin;