X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fmount_image.c;h=28a807d7afdfd7d26537a57a97d99e5203564841;hp=d2ce94b215e36e1ab774a34cf90b12d07d71eb64;hb=7581bc32cef9ad931183ce582454fffbd7401ca1;hpb=88a9d8314ba480d0eb7be351581d2be183efa91e diff --git a/src/mount_image.c b/src/mount_image.c index d2ce94b2..28a807d7 100644 --- a/src/mount_image.c +++ b/src/mount_image.c @@ -802,7 +802,7 @@ static int rebuild_wim(struct wimfs_context *ctx, int write_flags, } DEBUG("Calculating SHA1 checksums for all new staging files."); - list_for_each_entry(lte, &ctx->staging_list, staging_list) { + list_for_each_entry_safe(lte, tmp, &ctx->staging_list, staging_list) { ret = update_lte_of_staging_file(lte, w->lookup_table); if (ret != 0) return ret;