summaryrefslogtreecommitdiff
path: root/render/animcur.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/animcur.c')
-rw-r--r--render/animcur.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render/animcur.c b/render/animcur.c
index a87718d12..362607f7a 100644
--- a/render/animcur.c
+++ b/render/animcur.c
@@ -93,7 +93,7 @@ static CursorBits animCursorBits = {
static int AnimCurGeneration;
static DevPrivateKey AnimCurScreenPrivateKey = &AnimCurScreenPrivateKey;
-#define IsAnimCur(c) ((c)->bits == &animCursorBits)
+#define IsAnimCur(c) ((c) && ((c)->bits == &animCursorBits))
#define GetAnimCur(c) ((AnimCurPtr) ((c) + 1))
#define GetAnimCurScreen(s) ((AnimCurScreenPtr)dixLookupPrivate(&(s)->devPrivates, AnimCurScreenPrivateKey))
#define GetAnimCurScreenIfSet(s) GetAnimCurScreen(s)