1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

(trunk libT) #2539: "incomplete folder" feature may lead to deleted files

This commit is contained in:
Charles Kerr 2009-10-29 17:00:22 +00:00
parent 3680896a19
commit b5042148e8

View file

@ -2356,7 +2356,7 @@ tr_torrentDeleteLocalData( tr_torrent * tor, tr_fileFunc fileFunc )
deleteLocalData( tor, fileFunc );
else {
/* torrent only has one file */
char * path = tr_torrentFindFile( tor, 0 );
char * path = tr_buildPath( tor->currentDir, tor->info.files[0].name, NULL );
fileFunc( path );
tr_free( path );
}