aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-01-12 04:01:08 +0530
committerGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-01-12 04:01:08 +0530
commit7f49d37a5176b11ca6d5f7b40b4405000d4e3c3f (patch)
treee6006ce2940141675ffc84d0f60ee3165f7d257c
parent9f8a1168e6db0788e5741bd97b1bd1d9e443116d (diff)
Modified exec.cpp to use env_get_string()
-rw-r--r--exec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec.cpp b/exec.cpp
index ab347a98..384fa4e3 100644
--- a/exec.cpp
+++ b/exec.cpp
@@ -1740,7 +1740,7 @@ int exec_subshell( const wchar_t *cmd,
CHECK( cmd, -1 );
- ifs = env_get(L"IFS");
+ ifs = env_get_string(L"IFS").empty()?NULL:env_get_string(L"IFS");
if( ifs && ifs[0] )
{