summaryrefslogtreecommitdiffhomepage
path: root/src/rcore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rcore.c')
-rw-r--r--src/rcore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 29885c39..b229589f 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -1964,7 +1964,7 @@ const char *GetFileName(const char *filePath)
if (filePath != NULL) fileName = strprbrk(filePath, "\\/");
- if (fileName != NULL) return filePath;
+ if (fileName == NULL) return filePath;
return fileName + 1;
}