backend/libinput: avoid potential NULL access in wlr_libinput_get_device_handle

This commit is contained in:
Simon Zeni 2024-04-08 09:39:36 -04:00 committed by Simon Ser
parent 8221c487ed
commit cc10a5259d

View File

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