1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-23 14:40:43 +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,6 +63,7 @@ void ratioLimitHitCallback(tr_torrent * torrent, void * torrentData)
int trashDataFile(const char * filename) int trashDataFile(const char * filename)
{ {
if (filename != NULL)
[Torrent trashFile: [NSString stringWithUTF8String: filename]]; [Torrent trashFile: [NSString stringWithUTF8String: filename]];
return 0; return 0;
} }