From: Shashank Tavildar Date: Tue, 29 Oct 2019 22:59:20 +0000 (-0700) Subject: Removed the optimization check X-Git-Tag: v1.4.4~1^2~5^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c1649f1395b93a55f66cb307989c556cc5418f8;p=thirdparty%2Fzstd.git Removed the optimization check --- diff --git a/programs/util.c b/programs/util.c index 9afb5a869..2143d178b 100644 --- a/programs/util.c +++ b/programs/util.c @@ -329,15 +329,12 @@ int UTIL_prepareFileList(const char *dirName, char** bufStart, size_t* pos, char int UTIL_isCompressedFile(const char *inputName, const char *extensionList[]) { const char* ext = UTIL_getFileExtension(inputName); - if(strcmp(ext,"")) + while(*extensionList!=NULL) { - while(*extensionList!=NULL) - { - const int isCompressedExtension = strcmp(ext,*extensionList); - if(isCompressedExtension==0) - return 1; - ++extensionList; - } + const int isCompressedExtension = strcmp(ext,*extensionList); + if(isCompressedExtension==0) + return 1; + ++extensionList; } return 0; }