diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index 63553643..109441d2 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -721,6 +721,8 @@ tp_init_slots(struct tp_dispatch *tp, } tp->touches = calloc(tp->ntouches, sizeof(struct tp_touch)); + if (!tp->touches) + return -1; return 0; }