makedep: Fixed string comparison against the source tree path
(reported by Kai Blin).
This commit is contained in:
parent
d1331e62ca
commit
4fff18b534
|
@ -945,8 +945,8 @@ int main( int argc, char *argv[] )
|
|||
if (path->name[0] != '/') continue;
|
||||
if (top_src_dir)
|
||||
{
|
||||
if (!strncmp( path->name, top_src_dir, strlen(top_src_dir) )) continue;
|
||||
if (path->name[strlen(top_src_dir)] == '/') continue;
|
||||
if (!strncmp( path->name, top_src_dir, strlen(top_src_dir) ) &&
|
||||
path->name[strlen(top_src_dir)] == '/') continue;
|
||||
}
|
||||
list_remove( &path->entry );
|
||||
free( path );
|
||||
|
|
Loading…
Reference in New Issue