From 531ab0726d9ff758cde2c6b0555aa98f6fd98560 Mon Sep 17 00:00:00 2001 From: Thomas Jaeger Date: Sun, 21 Dec 2008 22:36:12 +0100 Subject: [PATCH] Prevent segfault --- mi/mieq.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/mi/mieq.c b/mi/mieq.c index 9b15752..7bffd58 100644 --- a/mi/mieq.c +++ b/mi/mieq.c @@ -358,7 +358,8 @@ mieqProcessInputEvents(void) is transferred. */ if (event->u.u.type == DeviceKeyPress || event->u.u.type == DeviceKeyRelease) - CopyKeyClass(dev, master); + if (master) + CopyKeyClass(dev, master); if (master) CopyGetMasterEvent(master, event, -- 1.6.0.4