Changeset 12859


Ignore:
Timestamp:
Sep 12, 2011, 8:41:28 PM (10 years ago)
Author:
jordan
Message:

tr_free() already checks for null, so no need for the caller to wrap it in an 'if not null' test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/webseed.c

    r12858 r12859  
    9999    tr_file_index_t i;
    100100
    101     for( i = 0; i < inf->fileCount; i++ ) {
    102         if( w->file_urls[i] )
    103             tr_free( w->file_urls[i] );
    104     }
     101    for( i=0; i<inf->fileCount; ++i )
     102        tr_free( w->file_urls[i] );
    105103    tr_free( w->file_urls );
    106104
Note: See TracChangeset for help on using the changeset viewer.