udev: fail libinput_create_from_udev for NULL values

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2013-12-09 16:34:49 +10:00 committed by Jonas Ådahl
parent 48608f1f6a
commit 4f9c0839fb

View file

@ -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;