From 0731c8f26fa1f85d3bb675cbef70da83baae2045 Mon Sep 17 00:00:00 2001 From: orbea Date: Fri, 8 Feb 2019 09:56:53 -0800 Subject: [PATCH] Fix warning with CXX_BUILD. Thanks hhromic! --- runahead/secondary_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runahead/secondary_core.c b/runahead/secondary_core.c index f597c1afaa..632ae1ba40 100644 --- a/runahead/secondary_core.c +++ b/runahead/secondary_core.c @@ -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; }