1
0
Fork 0
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:
Charles Kerr 2009-04-07 04:23:04 +00:00
parent 396216563c
commit 30bb6b3ecf

View file

@ -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 );