Commit 00059798 authored by Mike Gabriel's avatar Mike Gabriel

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; ^ ```
parent 7251ef49
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment