mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Modified function.cpp to use env_get_string().
This commit is contained in:
parent
d0e18e3d20
commit
610246c48f
1 changed files with 3 additions and 2 deletions
|
@ -153,8 +153,9 @@ static void autoload_names( array_list_t *out, int get_hidden )
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
array_list_t path_list;
|
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 )
|
if( ! path_var )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue