diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index a19d10381..ec1e340a7 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -1898,7 +1898,7 @@ void tr_torrentDeleteLocalData( tr_torrent * tor, tr_fileFunc fileFunc ) { if( fileFunc == NULL ) - fileFunc = unlink; + fileFunc = remove; /* close all the files because we're about to delete them */ tr_torrentCloseLocalFiles( tor );