From 8e3279134987a45f2a89c963ef2d33bc3d3c8179 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 4 Dec 2008 09:47:25 +1000 Subject: 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 --- hw/xfree86/common/xf86Xinput.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c index 38fd1ecbf..6b92acb9c 100644 --- a/hw/xfree86/common/xf86Xinput.c +++ b/hw/xfree86/common/xf86Xinput.c @@ -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; -- cgit v1.2.3