diff options
author | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-01-12 22:56:53 +0530 |
---|---|---|
committer | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-01-12 22:56:53 +0530 |
commit | 943cc68f54b2b4d8aadc3b262992e2b150edaf3a (patch) | |
tree | e5f1749f768959df44d075927758da78f468b83d /parser.cpp | |
parent | 3bb4d0b276cb3b1e437e05f5869b7b665eab82cd (diff) |
Modified parse_util.cpp, parser.cpp, path.cpp to use env_get_string()
Diffstat (limited to 'parser.cpp')
-rw-r--r-- | parser.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2043,7 +2043,9 @@ static int parse_job( process_t *p, } else if(cmd[0]==L'$') { - wchar_t *val = env_get( cmd+1 ); + + const wcstring val_wstr = env_get_string( cmd+1 ); + const wchar_t *val = val_wstr.empty()?NULL:val_wstr.c_str(); if( val ) { debug( 0, |