dix: fix "possible use of uninitialized variable" warning.

The device passed through to UnrealizeCursor isn't used anyway, so setting it
to NULL is enough.
This commit is contained in:
Peter Hutterer 2007-09-12 20:48:48 +09:30
parent b484451eab
commit 68e0c4988e

View File

@ -115,7 +115,7 @@ FreeCursor(pointer value, XID cid)
CursorPtr pCurs = (CursorPtr)value;
ScreenPtr pscr;
DeviceIntPtr pDev;
DeviceIntPtr pDev = NULL; /* unused anyway */
if ( --pCurs->refcnt != 0)
return(Success);