summaryrefslogtreecommitdiff
path: root/src/evdev-mt-touchpad-tap.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2014-08-22 15:15:17 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2014-08-26 11:04:42 +1000
commitd635b1da2d4a89a98b41439dd564d75a57b680d1 (patch)
tree88f9343d8f3ee37d771096ab11c0dba2c376eddd /src/evdev-mt-touchpad-tap.c
parentbd8e3086939230a3501a6ee6ea3b2cdb1b2203a2 (diff)
touchpad: silence Coverity warnings about uninitialized use
container_of() accesses tp for offset calculation. Which is fine, but Coverity doesn't know that. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/evdev-mt-touchpad-tap.c')
-rw-r--r--src/evdev-mt-touchpad-tap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/evdev-mt-touchpad-tap.c b/src/evdev-mt-touchpad-tap.c
index fae8f5e..c05b45c 100644
--- a/src/evdev-mt-touchpad-tap.c
+++ b/src/evdev-mt-touchpad-tap.c
@@ -617,7 +617,7 @@ static int
tp_tap_config_count(struct libinput_device *device)
{
struct evdev_dispatch *dispatch;
- struct tp_dispatch *tp;
+ struct tp_dispatch *tp = NULL;
dispatch = ((struct evdev_device *) device)->dispatch;
tp = container_of(dispatch, tp, base);
@@ -630,7 +630,7 @@ tp_tap_config_set_enabled(struct libinput_device *device,
enum libinput_config_tap_state enabled)
{
struct evdev_dispatch *dispatch;
- struct tp_dispatch *tp;
+ struct tp_dispatch *tp = NULL;
dispatch = ((struct evdev_device *) device)->dispatch;
tp = container_of(dispatch, tp, base);
@@ -644,7 +644,7 @@ static enum libinput_config_tap_state
tp_tap_config_is_enabled(struct libinput_device *device)
{
struct evdev_dispatch *dispatch;
- struct tp_dispatch *tp;
+ struct tp_dispatch *tp = NULL;
dispatch = ((struct evdev_device *) device)->dispatch;
tp = container_of(dispatch, tp, base);