summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-09-14 08:03:17 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-09-14 09:32:53 +1000
commitd3c66d6b69c04466b8388586090dc48a0aad7684 (patch)
treea34e9c19818312dcf3e606b84fac30c01558abd8 /dix
parente85775aa64d1e9322c82090a26256af5e1fede0a (diff)
dix: FindChildForEvent needs init child to None.
silences compiler warning: events.c: In function 'FixUpEventFromWindow': events.c:2262: warning: 'child' may be used uninitialized in this function Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix')
-rw-r--r--dix/events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dix/events.c b/dix/events.c
index 90a2675c4..0d01df512 100644
--- a/dix/events.c
+++ b/dix/events.c
@@ -2259,7 +2259,7 @@ static Window FindChildForEvent(DeviceIntPtr dev, WindowPtr event)
{
SpritePtr pSprite = dev->spriteInfo->sprite;
WindowPtr w = pSprite->spriteTrace[pSprite->spriteTraceGood-1];
- Window child;
+ Window child = None;
/* If the search ends up past the root should the child field be
set to none or should the value in the argument be passed