aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-03-21 22:37:38 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-05-02 15:38:35 +0200
commit00059798d5ee29296d2e4f5e0ff05ba0fd44ac7b (patch)
tree4eacbf76c4a802b0eb3b88aa758b6c76727caa28
parent7251ef492f72c57713f7e56cf979541bed03d02b (diff)
downloadnx-libs-00059798d5ee29296d2e4f5e0ff05ba0fd44ac7b.tar.gz
nx-libs-00059798d5ee29296d2e4f5e0ff05ba0fd44ac7b.tar.bz2
nx-libs-00059798d5ee29296d2e4f5e0ff05ba0fd44ac7b.zip
hw/nxagent/Window.c: Initialize tmp_mask and attributes.event_mask with NoEventMask.
Amends the following compiler warning: ``` Window.c: In function ‘nxagentSetTopLevelEventMask’: Window.c:3392:31: warning: ‘attributes.event_mask’ may be used uninitialized in this function [-Wmaybe-uninitialized] Mask tmp_mask = attributes.event_mask; ^ ```
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Window.c b/nx-X11/programs/Xserver/hw/nxagent/Window.c
index 37148f222..fb26b8242 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Window.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Window.c
@@ -3385,7 +3385,7 @@ void nxagentSetTopLevelEventMask(pWin)
if (nxagentOption(Rootless) && nxagentWindowTopLevel(pWin))
{
/* Assume that the mask fits in int... broken on Big Endian 64bit systems. */
- Mask tmp_mask = attributes.event_mask;
+ Mask tmp_mask = attributes.event_mask = NoEventMask;
nxagentGetEventMask(pWin, &tmp_mask);
attributes.event_mask = (int)tmp_mask;