diff options
| author | Ray <[email protected]> | 2020-01-12 13:56:03 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-01-12 13:56:03 +0100 |
| commit | 22b771328750a5baf138b0a125ecc21df1b1b49c (patch) | |
| tree | 4df338f5adc1cbe98eb058949f11fcb512099fe2 /src | |
| parent | a748c3bf2535dccee5e75d383646d44d070b483d (diff) | |
| download | raylib-22b771328750a5baf138b0a125ecc21df1b1b49c.tar.gz raylib-22b771328750a5baf138b0a125ecc21df1b1b49c.zip | |
IsFileExtension(): Review issue with no-extension files
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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++) { |
