mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 10:01:14 -03:00
Fix for is_potential_path that caused all strings to be reported as paths
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user