diff options
author | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-01-10 01:40:03 +0530 |
---|---|---|
committer | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-01-10 01:40:03 +0530 |
commit | 7bde2b5cbf55a7a1b8e9d0e4546f7b7b1fb0756e (patch) | |
tree | 2711c2166c3ed6825f6992da2f513f780134ac5b /env.cpp | |
parent | 7b3377e78c16b3ba74edb141ca0dd2ec895806b9 (diff) |
Modified complete.cpp to use env_get_string(); Fixed env_get_string() return an empty wcstring instead of returning 0.
Diffstat (limited to 'env.cpp')
-rw-r--r-- | env.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1199,7 +1199,7 @@ wcstring env_get_string( const wchar_t *key ) { if( wcscmp( res->val, ENV_NULL )==0) { - return 0; + return wcstring(L""); } else { @@ -1226,7 +1226,7 @@ wcstring env_get_string( const wchar_t *key ) if( !item || (wcscmp( item, ENV_NULL )==0)) { - return 0; + return wcstring(L""); } else { |