diff --git a/runahead/secondary_core.c b/runahead/secondary_core.c index 74ce5ccc4b..9d0d67de4b 100644 --- a/runahead/secondary_core.c +++ b/runahead/secondary_core.c @@ -80,7 +80,11 @@ char* get_temp_directory_alloc(void) return path; #endif #else - char *path = strcpy_alloc_force(getenv("TMPDIR")); + char *path = "/tmp"; + if (getenv("TMPDIR")) + path = getenv("TMPDIR"); + + path = strcpy_alloc_force(path); return path; #endif }