mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 03:51:14 -03:00
Use cpp macro to avoid manually adding sentinel value to varargs functions
darcs-hash:20070416214041-ac50b-f682569c0d29ab3519bb59335debba525a640175.gz
This commit is contained in:
2
path.c
2
path.c
@@ -52,7 +52,7 @@ wchar_t *path_get_path( void *context, const wchar_t *cmd )
|
||||
path = env_get(L"PATH");
|
||||
if( path == 0 )
|
||||
{
|
||||
if( contains_str( PREFIX L"/bin", L"/bin", L"/usr/bin", (void *)0 ) )
|
||||
if( CONTAINS( PREFIX L"/bin", L"/bin", L"/usr/bin" ) )
|
||||
{
|
||||
path = L"/bin" ARRAY_SEP_STR L"/usr/bin";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user