diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-09-17 23:58:38 -0700 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-09-17 23:58:38 -0700 |
commit | 279595bd1af86db92b063ac8b70c7ef51c67363c (patch) | |
tree | f988fd3d404ff419f3f41a3559c7354ecf6ccdcf /udev/lib/libudev-device.c | |
parent | a076080bd43d55f0d4eabc9bef2bf46c9791372f (diff) |
libudev: fix "subsystem" value
Diffstat (limited to 'udev/lib/libudev-device.c')
-rw-r--r-- | udev/lib/libudev-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/lib/libudev-device.c b/udev/lib/libudev-device.c index 782d662549..76ef298a34 100644 --- a/udev/lib/libudev-device.c +++ b/udev/lib/libudev-device.c @@ -397,7 +397,7 @@ const char *udev_device_get_subsystem(struct udev_device *udev_device) return udev_device->subsystem; /* read "subsytem" link */ - if (util_get_sys_subsystem(udev_device->udev, udev_device->syspath, subsystem, sizeof(subsystem)) == 0) { + if (util_get_sys_subsystem(udev_device->udev, udev_device->syspath, subsystem, sizeof(subsystem)) > 0) { udev_device->subsystem = strdup(subsystem); return udev_device->subsystem; } |