touchpad: Silence -Wmaybe-uninitialized compiler warning
authorJonas Ådahl <jadahl@gmail.com>
Fri, 18 Apr 2014 06:43:14 +0000 (08:43 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Tue, 22 Apr 2014 22:07:40 +0000 (00:07 +0200)
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
src/evdev-mt-touchpad.c

index bbbd8f39496b8fdd56201cbe22fe4558ce6c398a..63553643a5f18d78295e022484c13ba3d493a13a 100644 (file)
@@ -152,7 +152,7 @@ tp_get_touch(struct tp_dispatch *tp, unsigned int slot)
 static inline void
 tp_begin_touch(struct tp_dispatch *tp, struct tp_touch *t)
 {
-       struct tp_touch *tmp;
+       struct tp_touch *tmp = NULL;
 
        if (t->state != TOUCH_UPDATE) {
                tp_motion_history_reset(t);