Merge pull request #8227 from orbea/cxx_build

Fix warning with CXX_BUILD.
This commit is contained in:
Twinaphex 2019-02-08 19:35:36 +01:00 committed by GitHub
commit e724b9101b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,11 +81,11 @@ static char *get_temp_directory_alloc(void)
path = strcpy_alloc_force(settings->paths.directory_libretro);
}
#else
path = "/tmp";
if (getenv("TMPDIR"))
path = getenv("TMPDIR");
path = strcpy_alloc_force(getenv("TMPDIR"));
else
path = strcpy_alloc_force("/tmp");
path = strcpy_alloc_force(path);
#endif
return path;
}