diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2016-04-28 14:10:50 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2016-04-28 14:41:43 +1000 |
commit | 181ea654dd737783553289a77b72706783b40c17 (patch) | |
tree | 960389f974969f6c01fc60a10d0b4ef576555397 /src | |
parent | f9b6fa21df735e9a68c5f527afc422f519d6002c (diff) |
Fix potential use of uninitialized values
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/xf86libinput.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xf86libinput.c b/src/xf86libinput.c index dd3250c..eb36c51 100644 --- a/src/xf86libinput.c +++ b/src/xf86libinput.c @@ -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, |