mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Fix for is_potential_path that caused all strings to be reported as paths
This commit is contained in:
parent
8e4e30d266
commit
ed66a46113
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ static bool is_potential_path( const wcstring &cpath )
|
|||
wcstring ent;
|
||||
while (wreaddir(dir, ent))
|
||||
{
|
||||
if( wcsncmp( base_name.c_str(), base_name.c_str(), base_name.length() ) == 0 )
|
||||
if( wcsncmp( ent.c_str(), base_name.c_str(), base_name.length() ) == 0 )
|
||||
{
|
||||
res = true;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue