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:
parent
b484451eab
commit
68e0c4988e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user