mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 21:00:25 +01:00
path: add error handling for failing to create a seat
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
1901449871
commit
9d3fbabb5e
1 changed files with 6 additions and 0 deletions
|
|
@ -136,6 +136,12 @@ path_input_enable(struct libinput *libinput)
|
|||
free(seat_name);
|
||||
free(seat_logical_name);
|
||||
|
||||
if (!seat) {
|
||||
log_info("failed to create seat for device '%s'.\n", devnode);
|
||||
free(sysname);
|
||||
return -1;
|
||||
}
|
||||
|
||||
device = evdev_device_create(&seat->base, devnode, sysname);
|
||||
free(sysname);
|
||||
libinput_seat_unref(&seat->base);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue