Setting cdpath to current directory in path.cpp.

This commit is contained in:
Siteshwar Vashisht 2012-03-04 01:28:09 +05:30
parent 2da8df6202
commit 8c0803e3c5

View file

@ -370,9 +370,7 @@ wchar_t *path_allocate_cdpath( const wchar_t *dir, const wchar_t *wd )
wchar_t *state;
wchar_t *whole_path;
env_var_t path = env_get_string(L"CDPATH");
if (path.missing())
path = wd ? wd : L".";
env_var_t path = L".";
nxt_path = path.c_str();
path_cpy = wcsdup( path.c_str() );