mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
Get rid of another warning
This commit is contained in:
parent
4cf0d0986a
commit
821b215f37
2 changed files with 2 additions and 3 deletions
|
@ -139,7 +139,6 @@
|
|||
- (BOOL) privateTorrent;
|
||||
|
||||
- (NSString *) torrentLocation;
|
||||
#warning needed?
|
||||
- (NSString *) dataLocation;
|
||||
- (NSString *) fileLocation: (FileListNode *) node;
|
||||
|
||||
|
|
|
@ -490,7 +490,7 @@ int trashDataFile(const char * filename)
|
|||
return YES;
|
||||
|
||||
NSString * downloadFolder = [self currentDirectory], * volumeName;
|
||||
if (downloadFolder && (volumeName = [[[NSFileManager defaultManager] componentsToDisplayForPath: downloadFolder] objectAtIndex: 0]))
|
||||
if ((volumeName = [[[NSFileManager defaultManager] componentsToDisplayForPath: downloadFolder] objectAtIndex: 0]))
|
||||
{
|
||||
NSDictionary * systemAttributes = [[NSFileManager defaultManager] attributesOfFileSystemForPath: downloadFolder error: NULL];
|
||||
uint64_t remainingSpace = [[systemAttributes objectForKey: NSFileSystemFreeSize] unsignedLongLongValue];
|
||||
|
@ -1406,7 +1406,7 @@ int trashDataFile(const char * filename)
|
|||
newLocation = [self dataLocation];
|
||||
checkedNewLocation = YES;
|
||||
|
||||
if ([fTimeMachineExclude isEqualToString: newLocation])
|
||||
if (newLocation && [fTimeMachineExclude isEqualToString: newLocation])
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue