summaryrefslogtreecommitdiff
path: root/udev_utils.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-06-05 05:13:33 +0200
committerKay Sievers <kay.sievers@suse.de>2005-06-05 05:13:33 +0200
commit995aec875973e29caf42b037736349fc8839ee40 (patch)
treea1b9527ff13542eeca67f23e29ee9201b5d7f218 /udev_utils.c
parent6a522681e1438bbd9c317654cc35d5d206d378ad (diff)
udev: clear lists if a new value is assigned
Former values are cleared if SYMLINK=<value> is used. To add a value SYMLINK+=<value> is now needed. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev_utils.c')
-rw-r--r--udev_utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/udev_utils.c b/udev_utils.c
index 70b20e3a28..d605631088 100644
--- a/udev_utils.c
+++ b/udev_utils.c
@@ -108,6 +108,10 @@ void udev_cleanup_device(struct udevice *udev)
list_del(&name_loop->node);
free(name_loop);
}
+ list_for_each_entry_safe(name_loop, temp_loop, &udev->run_list, node) {
+ list_del(&name_loop->node);
+ free(name_loop);
+ }
}
int string_is_true(const char *str)