]> wimlib.net Git - wimlib/blobdiff - src/blob_table.c
Don't unnecessarily rebuild exported metadata resources
[wimlib] / src / blob_table.c
index 96290e8de777afef6137f0e4d45433d5823e6e67..39193b42651dde1fee6eaf54236f8d7732b5ba2d 100644 (file)
@@ -162,7 +162,9 @@ out_free:
        return NULL;
 }
 
        return NULL;
 }
 
-static void
+/* Release a blob descriptor from its location, if any, and set its new location
+ * to BLOB_NONEXISTENT.  */
+void
 blob_release_location(struct blob_descriptor *blob)
 {
        switch (blob->blob_location) {
 blob_release_location(struct blob_descriptor *blob)
 {
        switch (blob->blob_location) {
@@ -193,6 +195,7 @@ blob_release_location(struct blob_descriptor *blob)
                break;
 #endif
        }
                break;
 #endif
        }
+       blob->blob_location = BLOB_NONEXISTENT;
 }
 
 void
 }
 
 void