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