mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
tools: exit early if we fail to find a udev device
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -104,6 +104,8 @@ ratbag_cmd_info(struct libratbag *libratbag, uint32_t flags, int argc, char **ar
|
||||
|
||||
udev = udev_new();
|
||||
udev_device = udev_device_from_path(udev, path);
|
||||
if (!udev_device)
|
||||
return 1;
|
||||
|
||||
rb = ratbag_new_from_udev_device(libratbag, udev_device);
|
||||
if (!rb) {
|
||||
|
||||
Reference in New Issue
Block a user