mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 05:50:26 +01:00
touchpad: fix a clang compiler warning
Causes the valgrind tests to fail as tp is considered uninitialized. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
70a34b0bc4
commit
d61f050d7f
1 changed files with 2 additions and 1 deletions
|
|
@ -664,8 +664,9 @@ tp_tap_config_set_enabled(struct libinput_device *device,
|
|||
enum libinput_config_tap_state enabled)
|
||||
{
|
||||
struct evdev_dispatch *dispatch = ((struct evdev_device *) device)->dispatch;
|
||||
struct tp_dispatch *tp = container_of(dispatch, tp, base);
|
||||
struct tp_dispatch *tp = NULL;
|
||||
|
||||
tp = container_of(dispatch, tp, base);
|
||||
tp_tap_enabled_update(tp, tp->tap.suspended,
|
||||
(enabled == LIBINPUT_CONFIG_TAP_ENABLED),
|
||||
libinput_now(device->seat->libinput));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue