aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-05-25 06:02:21 +0000
committermarha <marha@users.sourceforge.net>2010-05-25 06:02:21 +0000
commit33b487abbf3fa5c2798f7a753607fb227878e119 (patch)
treeaa84eac4c66bd008b1a9aad6b02b04e7071046b1
parent77f85e3c78dda5d9c3db617426f929144890c03f (diff)
downloadvcxsrv-33b487abbf3fa5c2798f7a753607fb227878e119.tar.gz
vcxsrv-33b487abbf3fa5c2798f7a753607fb227878e119.tar.bz2
vcxsrv-33b487abbf3fa5c2798f7a753607fb227878e119.zip
Solved possible crash due to null ptr
-rw-r--r--xorg-server/dix/getevents.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/dix/getevents.c b/xorg-server/dix/getevents.c
index 7d560f103..efe0c4287 100644
--- a/xorg-server/dix/getevents.c
+++ b/xorg-server/dix/getevents.c
@@ -897,7 +897,7 @@ GetKeyboardValuatorEvents(EventList *events, DeviceIntPtr pDev, int type,
RawDeviceEvent *raw;
/* refuse events from disabled devices */
- if (!pDev->enabled)
+ if (!pDev || !pDev->enabled)
return 0;
if (!events ||!pDev->key || !pDev->focus || !pDev->kbdfeed ||