mirror of
https://github.com/X11Libre/xf86-input-libinput.git
synced 2026-03-24 01:24:04 +00:00
Fix potential use of uninitialized values
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -1382,7 +1382,7 @@ xf86libinput_handle_tablet_axis(InputInfoPtr pInfo,
|
||||
default:
|
||||
xf86IDrvMsg(pInfo, X_ERROR,
|
||||
"Invalid rotation axis on tool\n");
|
||||
break;
|
||||
return;
|
||||
}
|
||||
|
||||
valuator_mask_set_double(mask, valuator, value);
|
||||
@@ -3828,6 +3828,11 @@ LibinputInitDragLockProperty(DeviceIntPtr dev,
|
||||
sz = draglock_get_pairs(&driver_data->draglock,
|
||||
dl_values, sizeof(dl_values));
|
||||
break;
|
||||
default:
|
||||
xf86IDrvMsg(dev->public.devicePrivate,
|
||||
X_ERROR,
|
||||
"Invalid drag lock mode\n");
|
||||
return;
|
||||
}
|
||||
|
||||
prop_draglock = LibinputMakeProperty(dev,
|
||||
|
||||
Reference in New Issue
Block a user