Use cpp macro to avoid manually adding sentinel value to varargs functions

darcs-hash:20070416214041-ac50b-f682569c0d29ab3519bb59335debba525a640175.gz
This commit is contained in:
axel
2007-04-17 07:40:41 +10:00
parent 2efb88a30a
commit 91ca8610ee
4 changed files with 51 additions and 56 deletions

2
path.c
View File

@@ -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";
}