Browse Source

Avoid GETCWD() warning #1371

raysan5 5 years ago
parent
commit
11fbd49b73
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core.c

+ 2 - 2
src/core.c

@@ -2059,9 +2059,9 @@ const char *GetWorkingDirectory(void)
     static char currentDir[MAX_FILEPATH_LENGTH];
     static char currentDir[MAX_FILEPATH_LENGTH];
     memset(currentDir, 0, MAX_FILEPATH_LENGTH);
     memset(currentDir, 0, MAX_FILEPATH_LENGTH);
 
 
-    GETCWD(currentDir, MAX_FILEPATH_LENGTH - 1);
+    char *ptr = GETCWD(currentDir, MAX_FILEPATH_LENGTH - 1);
 
 
-    return currentDir;
+    return ptr;
 }
 }
 
 
 // Get filenames in a directory path (max 512 files)
 // Get filenames in a directory path (max 512 files)