summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core.c b/src/core.c
index 1a1ee825..73e651e8 100644
--- a/src/core.c
+++ b/src/core.c
@@ -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++)
{