Commit 181ea654 authored by Peter Hutterer's avatar Peter Hutterer

Fix potential use of uninitialized values

Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent f9b6fa21
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment