diff options
author | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-03-04 01:28:09 +0530 |
---|---|---|
committer | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-03-04 01:28:09 +0530 |
commit | 8c0803e3c5d9cb874f5dd69ee2727eb4be99bfac (patch) | |
tree | 2ea5fbcdf166700b0501d3072b992cb2b3a87052 /path.cpp | |
parent | 2da8df6202e5099b0a99afaae482c57d9f0a61de (diff) |
Setting cdpath to current directory in path.cpp.
Diffstat (limited to 'path.cpp')
-rw-r--r-- | path.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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() ); |