From 0f01320ec735946a608440a884dc04837b0d945a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 9 Nov 2022 11:37:19 +0100 Subject: dissect: remove unused variable --- src/dissect/dissect.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/dissect') diff --git a/src/dissect/dissect.c b/src/dissect/dissect.c index 668534a663..7e70ecf7a8 100644 --- a/src/dissect/dissect.c +++ b/src/dissect/dissect.c @@ -889,7 +889,6 @@ static int action_list_or_copy(DissectedImage *m, LoopDevice *d) { } else { _cleanup_close_ int dfd = -1; - _cleanup_strv_free_ char **list_dir = NULL; assert(arg_action == ACTION_LIST); @@ -897,7 +896,7 @@ static int action_list_or_copy(DissectedImage *m, LoopDevice *d) { if (dfd < 0) return log_error_errno(errno, "Failed to open mount directory: %m"); - r = recurse_dir(dfd, NULL, 0, UINT_MAX, RECURSE_DIR_SORT|RECURSE_DIR_ENSURE_TYPE|RECURSE_DIR_SAME_MOUNT, list_print_item, &list_dir); + r = recurse_dir(dfd, NULL, 0, UINT_MAX, RECURSE_DIR_SORT|RECURSE_DIR_ENSURE_TYPE|RECURSE_DIR_SAME_MOUNT, list_print_item, NULL); if (r < 0) return log_error_errno(r, "Failed to list image: %m"); } -- cgit v1.2.3