Clean up default sparse logic

This commit is contained in:
Nick Terrell 2017-03-31 15:20:50 -07:00
parent 96fe545a18
commit eb38617175

View File

@ -227,8 +227,8 @@ static FILE* FIO_openDstFile(const char* dstFileName)
DISPLAYLEVEL(4, "Sparse File Support is automatically disabled on stdout ; try --sparse \n");
}
} else {
if (ZSTD_SPARSE_DEFAULT == 0 && g_sparseFileSupport == 1) {
g_sparseFileSupport = 0;
if (g_sparseFileSupport == 1) {
g_sparseFileSupport = ZSTD_SPARSE_DEFAULT;
}
if (!g_overwrite && strcmp (dstFileName, nulmark)) { /* Check if destination file already exists */
f = fopen( dstFileName, "rb" );