mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-21 22:52:20 +00:00
backend/libinput: avoid potential NULL access in wlr_libinput_get_device_handle
This commit is contained in:
parent
8221c487ed
commit
cc10a5259d
@ -227,6 +227,8 @@ struct libinput_device *wlr_libinput_get_device_handle(
|
||||
dev = device_from_tablet_pad(wlr_tablet_pad_from_input_device(wlr_dev));
|
||||
break;
|
||||
}
|
||||
|
||||
assert(dev);
|
||||
return dev->handle;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user