]> wimlib.net Git - wimlib/blobdiff - src/export_image.c
Fix up return values
[wimlib] / src / export_image.c
index a24950ad30b3a8b9f81c7e3c60c4c8098bbc237a..58d6057ad3c567a9271de19cae217b97c5716ce2 100644 (file)
@@ -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