Ignore directories in --sub-autodetect-path that match the directory
of the current file (But it does not works with symbolic links).
if( !subdirs )
return NULL;
- for( i = 0; *psz_parser != '\0' ; )
+ for( i = 0; psz_parser && *psz_parser != '\0' ; )
{
char *psz_subdir = psz_parser;
psz_parser = strchr( psz_subdir, ',' );
int i_dir_content;
int a;
- if( psz_dir == NULL )
+ if( psz_dir == NULL || ( j >= 0 && !strcmp( psz_dir, f_dir ) ) )
continue;
/* parse psz_src dir */