1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-29 11:21:22 +03:00

Make fast=0 fail

This commit is contained in:
Jennifer Liu
2018-06-27 14:27:27 -07:00
parent a3cb97b038
commit aef8486fee
4 changed files with 6 additions and 16 deletions

View File

@ -568,6 +568,8 @@ int main(int argCount, const char* argv[])
fastLevel = readU32FromChar(&argument);
if (fastLevel) {
dictCLevel = cLevel = -(int)fastLevel;
} else {
CLEAN_RETURN(badusage(programName));
}
} else if (*argument != 0) {
/* Invalid character following --fast */