summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-04-10 23:14:32 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-04-10 23:15:32 +0100
commit25fa4f5bb4c9ed12755edfeec38b9bdc134736f1 (patch)
tree11e9acfaf538bb5481d7e6acfe38786329bf7eab /src
parent7b2753f9cc6a1a7ca353f57d78bdf3d52f32864b (diff)
sna: Don't set cursor bits to an invalid pointer
The xf86Cursor core simply frees it, so it has to be NULL. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 8cbddc29..80b26248 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -3266,7 +3266,7 @@ static struct sna_cursor *__sna_get_cursor(struct sna *sna, xf86CrtcPtr crtc)
static unsigned char *
sna_realize_cursor(xf86CursorInfoPtr info, CursorPtr cursor)
{
- return (unsigned char *)1;
+ return NULL;
}
#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,12,99,901,0)