Merge pull request #8227 from orbea/cxx_build
Fix warning with CXX_BUILD.
This commit is contained in:
commit
e724b9101b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue