Revert changes to clay

This commit is contained in:
Paul Betts 2011-09-22 12:26:23 -07:00
parent 01ab592b82
commit 76c15b7191

View File

@ -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 */