mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
(trunk libT) yet another fix found by RolCol
This commit is contained in:
@@ -76,7 +76,8 @@ verifyTorrent( tr_torrent * tor, tr_bool * stopFlag )
|
||||
char * filename = tr_buildPath( tor->downloadDir, file->name, NULL );
|
||||
fp = fopen( filename, "rb" );
|
||||
#ifdef HAVE_POSIX_FADVISE
|
||||
posix_fadvise( fileno( fp ), 0, 0, POSIX_FADV_SEQUENTIAL );
|
||||
if( fp != NULL )
|
||||
posix_fadvise( fileno( fp ), 0, 0, POSIX_FADV_SEQUENTIAL );
|
||||
#endif
|
||||
/* fprintf( stderr, "opening file #%d (%s) -- %p\n", fileIndex, filename, fp ); */
|
||||
tr_free( filename );
|
||||
|
||||
Reference in New Issue
Block a user