summaryrefslogtreecommitdiff
path: root/xserver/dix/devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'xserver/dix/devices.c')
-rw-r--r--xserver/dix/devices.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xserver/dix/devices.c b/xserver/dix/devices.c
index c4b2587b1..a01773236 100644
--- a/xserver/dix/devices.c
+++ b/xserver/dix/devices.c
@@ -2714,7 +2714,7 @@ GetPairedDevice(DeviceIntPtr dev)
if (!IsMaster(dev) && !IsFloating(dev))
dev = GetMaster(dev, MASTER_ATTACHED);
- return dev->spriteInfo? dev->spriteInfo->paired: NULL;
+ return (dev && dev->spriteInfo) ? dev->spriteInfo->paired: NULL;
}
/**