dix: init inputMasks to NULL to avoid random value dereference.

If the XI2 type is 0 (e.g. proximity events), inputMasks is never set and
may not be NULL.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-05-29 12:09:06 +10:00
parent 68d86adbe8
commit 235cf5713a

View File

@ -2313,7 +2313,7 @@ EventIsDeliverable(DeviceIntPtr dev, InternalEvent* event, WindowPtr win)
int rc = 0;
int filter = 0;
int type;
OtherInputMasks *inputMasks;
OtherInputMasks *inputMasks = NULL;
xEvent ev;
/* XXX: this makes me gag */