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-05 14:12:04 +1000
commit749cae82204f347248c815b1068ffcae9825fe70 (patch)
tree9c4820c8d4459e506e1984ad6e7072f03e335239 /mi
parent7ecedb0f2ee5b53513205d1f0aa381451893b9c5 (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 3d34481ef..1c61b57a9 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;