mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 20:31:19 -03:00
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:
4
env.cpp
4
env.cpp
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user