1
0
Fork 0

udev_device.c: avoid passing NULL to atoi

This commit is contained in:
illiliti 2021-06-03 03:21:56 +03:00
parent 6dcad515e9
commit 41d6cc9976

View file

@ -87,7 +87,7 @@ dev_t udev_device_get_devnum(struct udev_device *udev_device)
major = udev_device_get_property_value(udev_device, "MAJOR");
minor = udev_device_get_property_value(udev_device, "MINOR");
if (!major && !minor) {
if (!major || !minor) {
return makedev(0, 0);
}