diff --git a/src/udev-seat.c b/src/udev-seat.c index e6ff91c1..29d4fa02 100644 --- a/src/udev-seat.c +++ b/src/udev-seat.c @@ -332,6 +332,9 @@ libinput_create_from_udev(const struct libinput_interface *interface, { struct udev_input *input; + if (!interface || !udev || !seat_id) + return NULL; + input = zalloc(sizeof *input); if (!input) return NULL;