mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-27 16:30:48 +02:00
xfree86: fix compiler warning (use of uninitialized variable)
drv and idev are only set for SDs, but are only dereferenced for SDs too, so initializing them to NULL is safe. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
This commit is contained in:
parent
22d4ddcc3d
commit
8e32791349
1 changed files with 2 additions and 2 deletions
|
|
@ -650,8 +650,8 @@ void
|
|||
DeleteInputDeviceRequest(DeviceIntPtr pDev)
|
||||
{
|
||||
LocalDevicePtr pInfo = (LocalDevicePtr) pDev->public.devicePrivate;
|
||||
InputDriverPtr drv;
|
||||
IDevRec *idev;
|
||||
InputDriverPtr drv = NULL;
|
||||
IDevRec *idev = NULL;
|
||||
IDevPtr *it;
|
||||
Bool isMaster = pDev->isMaster;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue