1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-30 22:23:13 +03:00

Resolving local merge conflicts

This commit is contained in:
Shashank Tavildar
2019-10-28 15:15:13 -07:00
3 changed files with 5 additions and 0 deletions

View File

@ -330,6 +330,7 @@ int UTIL_prepareFileList(const char *dirName, char** bufStart, size_t* pos, char
YES => Skip the file (return 0)
NO => return 1
*/
int UTIL_isCompressedFile(const char *inputName)
{
return compareExtensions(inputName,g_compressedFileExtensions);
@ -337,12 +338,14 @@ int UTIL_isCompressedFile(const char *inputName)
int compareExtensions(const char* infilename, const char* extensionList[])
{
int i=0;
while(*extensionList != NULL)
{
const char* ext = strstr(infilename,extensionList[i]);
if(ext)
return 1;
++extensionList;
i++;
}
return 0;
}