mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 23:50:37 +00:00
Minor path check fix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13981 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
06c5cae449
commit
7836c1430f
2 changed files with 5 additions and 1 deletions
|
@ -564,7 +564,7 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
|
|||
* If the original name included a path, check that the located name
|
||||
* matches it. If it doesn't we return nil as MacOS-X does.
|
||||
*/
|
||||
if (base != nil
|
||||
if ([base length] > 0
|
||||
&& [base isEqual: [path stringByDeletingLastPathComponent]] == NO)
|
||||
{
|
||||
path = nil;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue