udev_device.c: avoid passing NULL to atoi
This commit is contained in:
parent
6dcad515e9
commit
41d6cc9976
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue