From 235cf5713a8fe535c439628cce9ea5b42432acb1 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 29 May 2009 12:09:06 +1000 Subject: [PATCH] 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 --- dix/events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dix/events.c b/dix/events.c index 0d0c4194d..39cf29538 100644 --- a/dix/events.c +++ b/dix/events.c @@ -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 */