mirror of
https://github.com/libretro/RetroArch
synced 2025-01-01 12:11:47 +00:00
Fix warning with CXX_BUILD.
Thanks hhromic!
This commit is contained in:
parent
f40a6438dd
commit
0731c8f26f
@ -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
Block a user