summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-06-04 16:05:36 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-06-05 16:13:58 +0930
commit17cd26225749a1daf7460b44e52f43082399b265 (patch)
tree43670b5233f2ce99cd7561d4a9a651de0aa6137d
parent75eb635e3543fcb731331d01f50e62b696967667 (diff)
dmx: don't dereference a nullpointer.
-rw-r--r--hw/dmx/dmxcursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/dmx/dmxcursor.c b/hw/dmx/dmxcursor.c
index 2a596a17b..6218dc39f 100644
--- a/hw/dmx/dmxcursor.c
+++ b/hw/dmx/dmxcursor.c
@@ -733,7 +733,7 @@ static void _dmxSetCursor(ScreenPtr pScreen, CursorPtr pCursor, int x, int y)
if (pCursor) {
dmxCursorPrivPtr pCursorPriv = DMX_GET_CURSOR_PRIV(pCursor, pScreen);
- if (dmxScreen->curCursor != pCursorPriv->cursor) {
+ if (pCursorPriv && dmxScreen->curCursor != pCursorPriv->cursor) {
if (dmxScreen->beDisplay)
XDefineCursor(dmxScreen->beDisplay, dmxScreen->scrnWin,
pCursorPriv->cursor);