Modified complete.cpp to use env_get_string(); Fixed env_get_string() return an empty wcstring instead of returning 0.

This commit is contained in:
Siteshwar Vashisht
2012-01-10 01:40:03 +05:30
parent 7b3377e78c
commit 7bde2b5cbf
2 changed files with 14 additions and 12 deletions

View File

@@ -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
{