X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fblob_table.c;h=39193b42651dde1fee6eaf54236f8d7732b5ba2d;hp=96290e8de777afef6137f0e4d45433d5823e6e67;hb=00d7680491529e7fd95f5721bd01795a730fc440;hpb=7bc9a01d5260f39f5d8c14a5478e3eada7d08ddd diff --git a/src/blob_table.c b/src/blob_table.c index 96290e8d..39193b42 100644 --- a/src/blob_table.c +++ b/src/blob_table.c @@ -162,7 +162,9 @@ out_free: 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) { @@ -193,6 +195,7 @@ blob_release_location(struct blob_descriptor *blob) break; #endif } + blob->blob_location = BLOB_NONEXISTENT; } void