Renamed env_vars to env_vars_snapshot_t

Cleanup of non-wcstring version of path_get_path
This commit is contained in:
ridiculousfish
2012-07-20 20:39:31 -07:00
parent b290fd33b9
commit b08fb86637
19 changed files with 95 additions and 194 deletions

View File

@@ -57,14 +57,9 @@ static wchar_t *cut_buffer=0;
*/
static int has_xsel()
{
static int called=0;
static int res = 0;
if (!called) {
wchar_t *path = path_get_path( L"xsel" );
res = !!path;
free(path);
called = 1;
static int res=-1;
if (res < 0) {
res = !! path_get_path(L"xsel", NULL);
}
return res;