summaryrefslogtreecommitdiff
path: root/udev/udevadm-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev/udevadm-test.c')
-rw-r--r--udev/udevadm-test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/udev/udevadm-test.c b/udev/udevadm-test.c
index 5dd515bcdc..894620073a 100644
--- a/udev/udevadm-test.c
+++ b/udev/udevadm-test.c
@@ -119,14 +119,13 @@ int udevadm_test(struct udev *udev, int argc, char *argv[])
udev_list_entry_foreach(entry, udev_device_get_properties_list_entry(dev))
info(udev, "%s=%s\n", udev_list_entry_get_name(entry), udev_list_entry_get_value(entry));
- if (err == 0 && udev_get_run(udev)) {
+ if (err == 0)
udev_list_entry_foreach(entry, udev_list_get_entry(&event->run_list)) {
char program[UTIL_PATH_SIZE];
udev_event_apply_format(event, udev_list_entry_get_name(entry), program, sizeof(program));
info(udev, "run: '%s'\n", program);
}
- }
udev_event_unref(event);
udev_device_unref(dev);
exit: