From 7f49d37a5176b11ca6d5f7b40b4405000d4e3c3f Mon Sep 17 00:00:00 2001 From: Siteshwar Vashisht Date: Thu, 12 Jan 2012 04:01:08 +0530 Subject: [PATCH] Modified exec.cpp to use env_get_string() --- exec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec.cpp b/exec.cpp index ab347a98e..384fa4e36 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] ) {