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:
parent
397cad4c04
commit
be61ded9de
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue