mirror of
https://github.com/facebook/zstd.git
synced 2025-12-07 00:02:39 -05:00
Clean up default sparse logic
This commit is contained in:
parent
96fe545a18
commit
eb38617175
@ -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" );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user