This commit is contained in:
illiliti
2020-08-04 21:32:06 +03:00
parent e1e78b525e
commit 25977fddb5
2 changed files with 26 additions and 29 deletions
+2 -4
View File
@@ -270,13 +270,11 @@ static void *udev_enumerate_add_device(void *ptr)
return NULL;
}
snprintf(path, sizeof(path), "%s", udev_device_get_syspath(udev_device));
udev_device_unref(udev_device);
pthread_mutex_lock(data->mutex);
udev_list_entry_add(&data->udev_enumerate->devices, path, NULL, 0);
udev_list_entry_add(&data->udev_enumerate->devices, udev_device_get_syspath(udev_device), NULL, 0);
pthread_mutex_unlock(data->mutex);
udev_device_unref(udev_device);
return NULL;
}