Browse Source

IsFileExtension(): Review issue with no-extension files

pull/1067/head
Ray 5 years ago
parent
commit
22b7713287
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/core.c

+ 3
- 3
src/core.c View File

@ -1834,14 +1834,14 @@ bool IsFileExtension(const char *fileName, const char *ext)
{
bool result = false;
const char *fileExt = GetExtension(fileName);
char fileExtLower[16] = { 0 };
strcpy(fileExtLower, TextToLower(fileExt));
if (fileExt != NULL)
{
int extCount = 0;
const char **checkExts = TextSplit(ext, ';', &extCount);
char fileExtLower[16] = { 0 };
strcpy(fileExtLower, TextToLower(fileExt));
for (int i = 0; i < extCount; i++)
{

Loading…
Cancel
Save