mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-25 08:29:59 +07:00
libudev: monitor - export MAJOR/MINOR only if available
This commit is contained in:
parent
3fb629fd5e
commit
3361a0f110
@ -367,7 +367,8 @@ struct udev_device *udev_monitor_receive_device(struct udev_monitor *udev_monito
|
||||
udev_device_unref(udev_device);
|
||||
return NULL;
|
||||
}
|
||||
udev_device_set_devnum(udev_device, makedev(maj, min));
|
||||
if (maj > 0)
|
||||
udev_device_set_devnum(udev_device, makedev(maj, min));
|
||||
udev_device_set_info_loaded(udev_device);
|
||||
return udev_device;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user