X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fexport_image.c;h=58d6057ad3c567a9271de19cae217b97c5716ce2;hb=5604fa76ebf1b5589425aa3864585975624b822d;hp=a24950ad30b3a8b9f81c7e3c60c4c8098bbc237a;hpb=c92b18f7074e6d632c555bed5897c5723abde720;p=wimlib diff --git a/src/export_image.c b/src/export_image.c index a24950ad..58d6057a 100644 --- a/src/export_image.c +++ b/src/export_image.c @@ -234,6 +234,8 @@ WIMLIBAPI int wimlib_export_image(WIMStruct *src_wim, dest_wim->image_metadata[ dest_wim->hdr.image_count - 1].inode_list = src_imd->inode_list; + if (src_imd->inode_list.first) + src_imd->inode_list.first->pprev = NULL; /* All memory allocations have been taken care of, so it's no longer * possible for this function to fail. Go ahead and increment the