libudev: fix commit 3df6350

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
Anthony G. Basile 2015-07-20 09:49:29 -04:00
parent f4e9270310
commit 2cf24b3978

View File

@ -722,8 +722,7 @@ static struct udev_device *udev_device_new(struct udev *udev)
if (udev == NULL) {
errno = EINVAL;
return NULL;
} else if (!subsystem)
errno = ENODATA;
}
udev_device = new0(struct udev_device, 1);
if (udev_device == NULL) {