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:
parent
68d86adbe8
commit
235cf5713a
|
@ -2313,7 +2313,7 @@ EventIsDeliverable(DeviceIntPtr dev, InternalEvent* event, WindowPtr win)
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
int filter = 0;
|
int filter = 0;
|
||||||
int type;
|
int type;
|
||||||
OtherInputMasks *inputMasks;
|
OtherInputMasks *inputMasks = NULL;
|
||||||
xEvent ev;
|
xEvent ev;
|
||||||
|
|
||||||
/* XXX: this makes me gag */
|
/* XXX: this makes me gag */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user