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>
This commit is contained in:
parent
e85775aa64
commit
d3c66d6b69
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue