mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-01 07:57:59 +02:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue