diff options
author | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-01-12 23:22:38 +0530 |
---|---|---|
committer | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-01-12 23:22:38 +0530 |
commit | 610246c48f2834180eca90628c385350574b8c2c (patch) | |
tree | 2e2f68638ccb6184d46a174f645ee8b92813da6d /function.cpp | |
parent | d0e18e3d20a247ffb1b25dcbba4dae1b0c961f11 (diff) |
Modified function.cpp to use env_get_string().
Diffstat (limited to 'function.cpp')
-rw-r--r-- | function.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/function.cpp b/function.cpp index a9e1f619..ddea8e86 100644 --- a/function.cpp +++ b/function.cpp @@ -153,8 +153,9 @@ static void autoload_names( array_list_t *out, int get_hidden ) int i; array_list_t path_list; - const wchar_t *path_var = env_get( L"fish_function_path" ); - + const wcstring path_var_wstr = env_get_string( L"fish_function_path" ); + const wchar_t *path_var = path_var_wstr.empty()?NULL:path_var_wstr.c_str(); + if( ! path_var ) return; |