aboutsummaryrefslogtreecommitdiffhomepage
path: root/env.cpp
diff options
context:
space:
mode:
authorGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-01-10 01:40:03 +0530
committerGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-01-10 01:40:03 +0530
commit7bde2b5cbf55a7a1b8e9d0e4546f7b7b1fb0756e (patch)
tree2711c2166c3ed6825f6992da2f513f780134ac5b /env.cpp
parent7b3377e78c16b3ba74edb141ca0dd2ec895806b9 (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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/env.cpp b/env.cpp
index b84e08d6..b8e1ceaf 100644
--- a/env.cpp
+++ b/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
{