summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext2fs/truncate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext2fs/truncate.c b/ext2fs/truncate.c
index 01796b27..be843c3d 100644
--- a/ext2fs/truncate.c
+++ b/ext2fs/truncate.c
@@ -133,7 +133,8 @@ trunc_indirect (struct node *node, block_t end,
(*free_block)(ind_bh + index, index);
if (ind_bh[index])
all_freed = 0; /* Some descendent hasn't been freed. */
- modified = 1;
+ else
+ modified = 1;
}
if (first == 0 && all_freed)