Return a copy instead of the array itself.

This commit is contained in:
Randall Luecke committed 2010-05-24 22:44:14 -05:00
1 parent f9da7f73b3
commit 359a29874b
1 file changed
+2 -1
+2 -1
View File
@@ -96,7 +96,8 @@ CPURLCustomIconKey = @"CPURLCustomIconKey";
- (CPArray)pathComponents
{
return self.pathComponents();
var path = self.pathComponents();
return [path copy];
}
// if absolute, returns the same as path