Changeset 8171


Ignore:
Timestamp:
Apr 7, 2009, 4:23:04 AM (12 years ago)
Author:
charles
Message:

(trunk libT) yet another fix found by RolCol?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/verify.c

    r8169 r8171  
    7777            fp = fopen( filename, "rb" );
    7878#ifdef HAVE_POSIX_FADVISE
    79             posix_fadvise( fileno( fp ), 0, 0, POSIX_FADV_SEQUENTIAL );
     79            if( fp != NULL )
     80                posix_fadvise( fileno( fp ), 0, 0, POSIX_FADV_SEQUENTIAL );
    8081#endif
    8182            /* fprintf( stderr, "opening file #%d (%s) -- %p\n", fileIndex, filename, fp ); */
Note: See TracChangeset for help on using the changeset viewer.