chiark / gitweb /
[PATCH] fix make -j4 and the local klibc-install
[elogind.git] / udev_utils.c
index 4695ef0d72a5e9bf3298fd5131353094ebb13784..5cdfb1421d5d7e6fed15dde7e22a3b6dca08954f 100644 (file)
@@ -45,10 +45,14 @@ int udev_init_device(struct udevice *udev, const char* devpath, const char *subs
 
        memset(udev, 0x00, sizeof(struct udevice));
        INIT_LIST_HEAD(&udev->symlink_list);
+       INIT_LIST_HEAD(&udev->run_list);
 
        if (subsystem)
                strlcpy(udev->subsystem, subsystem, sizeof(udev->subsystem));
 
+       if (action)
+               strlcpy(udev->action, action, sizeof(udev->action));
+
        if (devpath) {
                strlcpy(udev->devpath, devpath, sizeof(udev->devpath));
                remove_trailing_char(udev->devpath, '/');