fix a crash when trying to delete data that doesn't exist

This commit is contained in:
Mitchell Livingston 2009-10-26 02:33:23 +00:00
parent 397cad4c04
commit be61ded9de
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,8 @@ void ratioLimitHitCallback(tr_torrent * torrent, void * torrentData)
int trashDataFile(const char * filename)
{
[Torrent trashFile: [NSString stringWithUTF8String: filename]];
if (filename != NULL)
[Torrent trashFile: [NSString stringWithUTF8String: filename]];
return 0;
}