diff options
-rw-r--r-- | src/remove.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/remove.c b/src/remove.c index ce9ae21a9..5997467d7 100644 --- a/src/remove.c +++ b/src/remove.c @@ -1365,8 +1365,9 @@ rm (size_t n_files, char const *const *file, struct rm_options const *x) enum RM_status status = RM_OK; Dirstack_state *ds = ds_init (); bool cwd_restore_failed = false; + size_t i; - for (size_t i = 0; i < n_files; i++) + for (i = 0; i < n_files; i++) { if (cwd_restore_failed && IS_RELATIVE_FILE_NAME (file[i])) { |