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
|
@ -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…
Reference in New Issue
Block a user