Sfoglia il codice sorgente

Whoops. Forgot to declare a variable.

Ryan C. Gordon 25 anni fa
parent
commit
3deb942440
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      platform/unix.c

+ 1 - 0
platform/unix.c

@@ -461,6 +461,7 @@ char *__PHYSFS_platformRealPath(const char *path)
 
 int __PHYSFS_platformMkDir(const char *path)
 {
+    int rc;
     errno = 0;
     rc = mkdir(path, S_IRWXU);
     BAIL_IF_MACRO(rc == -1, strerror(errno), 0);