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 (path->name[0] != '/') continue;
|
||||||
if (top_src_dir)
|
if (top_src_dir)
|
||||||
{
|
{
|
||||||
if (!strncmp( path->name, top_src_dir, strlen(top_src_dir) )) continue;
|
if (!strncmp( path->name, top_src_dir, strlen(top_src_dir) ) &&
|
||||||
if (path->name[strlen(top_src_dir)] == '/') continue;
|
path->name[strlen(top_src_dir)] == '/') continue;
|
||||||
}
|
}
|
||||||
list_remove( &path->entry );
|
list_remove( &path->entry );
|
||||||
free( path );
|
free( path );
|
||||||
|
|
Loading…
Reference in New Issue