Commit 76c15b71 by Paul Betts

Revert changes to clay

parent 01ab592b
......@@ -388,17 +388,14 @@ find_tmp_path(char *buffer, size_t length)
size_t i;
for (i = 0; i < var_count; ++i) {
char *env = p_getenv(env_vars[i]);
const char *env = getenv(env_vars[i]);
if (!env)
continue;
if (is_valid_tmp_path(env)) {
strncpy(buffer, env, length);
free(env);
return 0;
}
free(env);
}
/* If the environment doesn't say anything, try to use /tmp */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment