diff options
author | Peter Hutterer <peter.hutterer@redhat.com> | 2008-12-04 09:47:25 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2008-12-08 12:05:46 +1000 |
commit | 8e3279134987a45f2a89c963ef2d33bc3d3c8179 (patch) | |
tree | 301767294e64504ba27c16c66bfb0eef21151c00 | |
parent | 22d4ddcc3d63b7fbf2a23f5162075e4ee06db781 (diff) |
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>
-rw-r--r-- | hw/xfree86/common/xf86Xinput.c | 4 |
1 files 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; |