summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-04-30 14:58:00 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-05-01 09:07:39 +1000
commit3d30789a05a730a03faa6058c73a5eda36ef3779 (patch)
treed22488f74992efb97377a20b06d6c24da80eff42 /mi
parent876910a951053f0bd31e30098de3da15a1c1f5d6 (diff)
mi: don't crash if we're trying to update the pointer for a keyboard.
If a device doesn't have a pointer, just return. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'mi')
-rw-r--r--mi/mipointer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mi/mipointer.c b/mi/mipointer.c
index e87fe7903..c75c120ec 100644
--- a/mi/mipointer.c
+++ b/mi/mipointer.c
@@ -367,6 +367,9 @@ miPointerUpdateSprite (DeviceIntPtr pDev)
pPointer = MIPOINTER(pDev);
+ if (!pPointer)
+ return;
+
pScreen = pPointer->pScreen;
if (!pScreen)
return;