fix private walk

SVN revision: 49077
This commit is contained in:
Mike Blumenkrantz 2010-05-20 21:25:34 +00:00
parent 683eafd4c8
commit 8b58afe33a
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,8 @@ _walk_parents_for_attr(struct udev_device *device, const char *sysattr, const ch
struct udev_device *parent, *child = device;
const char *test;
if ((test = udev_device_get_sysattr_value(device, sysattr))
return 1;
parent = udev_device_get_parent(child);
for (; parent; child = parent, parent = udev_device_get_parent(child))
{