]> wimlib.net Git - wimlib/blobdiff - src/write.c
write.c: don't write integrity table if there is no blob table
[wimlib] / src / write.c
index bc7b6ebde872159d997dee3a08fa48a377cfdc91..9e396162491d9ab6895dbb9fddf18a6327c218bd 100644 (file)
@@ -2388,7 +2388,9 @@ finish_write(WIMStruct *wim, int image, int write_flags,
        }
 
        /* Write integrity table if needed.  */
-       if (write_flags & WIMLIB_WRITE_FLAG_CHECK_INTEGRITY) {
+       if ((write_flags & WIMLIB_WRITE_FLAG_CHECK_INTEGRITY) &&
+           wim->out_hdr.blob_table_reshdr.offset_in_wim != 0)
+       {
                if (write_flags & WIMLIB_WRITE_FLAG_NO_NEW_BLOBS) {
                        /* The XML data we wrote may have overwritten part of
                         * the old integrity table, so while calculating the new