diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-06-04 16:05:36 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-06-05 16:13:58 +0930 |
commit | 17cd26225749a1daf7460b44e52f43082399b265 (patch) | |
tree | 43670b5233f2ce99cd7561d4a9a651de0aa6137d /hw/dmx/dmxcursor.c | |
parent | 75eb635e3543fcb731331d01f50e62b696967667 (diff) |
dmx: don't dereference a nullpointer.
Diffstat (limited to 'hw/dmx/dmxcursor.c')
-rw-r--r-- | hw/dmx/dmxcursor.c | 2 |
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); |