diff options
Diffstat (limited to 'xserver/dix/devices.c')
-rw-r--r-- | xserver/dix/devices.c | 2 |
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; } /** |