1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-22 22:20:39 +00:00

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

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