diff options
Diffstat (limited to 'mkfs/mkfs.c')
-rw-r--r-- | mkfs/mkfs.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mkfs/mkfs.c b/mkfs/mkfs.c index fda9831..0c4e9a5 100644 --- a/mkfs/mkfs.c +++ b/mkfs/mkfs.c @@ -36,10 +36,7 @@ static int pack_files(data_writer_t *data, fstree_t *fs, options_t *opt) if (set_working_dir(opt)) return -1; - while (fs->files != NULL) { - fi = fs->files; - fs->files = fi->next; - + for (fi = fs->files; fi != NULL; fi = fi->next) { if (!opt->quiet) printf("packing %s\n", fi->input_file); |