mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 23:20:29 +01:00
udev: fail libinput_create_from_udev for NULL values
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
48608f1f6a
commit
4f9c0839fb
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue