diff --git a/platform/unix.c b/platform/unix.c index cbd7b22..6755f06 100644 --- a/platform/unix.c +++ b/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);