diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-11-09 11:37:19 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-11-09 11:41:38 +0100 |
commit | 0f01320ec735946a608440a884dc04837b0d945a (patch) | |
tree | 569a666b5b98f5fd84ad560521454405541677d1 | |
parent | Merge pull request #25300 from DaanDeMeyer/kernel-selftests (diff) | |
download | systemd-0f01320ec735946a608440a884dc04837b0d945a.tar.xz systemd-0f01320ec735946a608440a884dc04837b0d945a.zip |
dissect: remove unused variable
-rw-r--r-- | src/dissect/dissect.c | 3 |
1 files changed, 1 insertions, 2 deletions
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"); } |