mirror of
https://github.com/transmission/transmission
synced 2025-03-09 13:50:00 +00:00
(trunk libT) yet another fix found by RolCol
This commit is contained in:
parent
396216563c
commit
30bb6b3ecf
1 changed files with 2 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Reference in a new issue