1
0
Fork 0
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:
Mitchell Livingston 2009-10-31 02:49:59 +00:00
parent 4cf0d0986a
commit 821b215f37
2 changed files with 2 additions and 3 deletions

View file

@ -139,7 +139,6 @@
- (BOOL) privateTorrent;
- (NSString *) torrentLocation;
#warning needed?
- (NSString *) dataLocation;
- (NSString *) fileLocation: (FileListNode *) node;

View file

@ -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;
}