summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/remove.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remove.c b/src/remove.c
index cd4ef6e45..6fc8a1dc2 100644
--- a/src/remove.c
+++ b/src/remove.c
@@ -1024,7 +1024,7 @@ rm (size_t n_files, char const *const *file, struct rm_options const *x)
for (i = 0; i < n_files; i++)
{
enum RM_status s = rm_1 (file[i], x, &cwd_state);
- assert (VALID_STATUS (status));
+ assert (VALID_STATUS (s));
UPDATE_STATUS (status, s);
}