Changeset 9934


Ignore:
Timestamp:
Jan 15, 2010, 12:20:48 AM (12 years ago)
Author:
charles
Message:

(trunk libT) remove the r9933 assertions and maybe fix Yada's bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bitset.h

    r9933 r9934  
    5454        tr_bitfieldConstruct( &b->bitfield, size );
    5555
    56         assert( b != NULL );
    57         assert( b->bitfield.bits != NULL );
    58         assert( tmp->bits != NULL );
    59 
    60         memcpy( b->bitfield.bits, tmp->bits, tmp->byteCount );
     56        if( ( tmp->bits != NULL ) && ( tmp->byteCount > 0 ) )
     57            memcpy( b->bitfield.bits, tmp->bits, tmp->byteCount );
    6158
    6259        tr_bitfieldFree( tmp );
Note: See TracChangeset for help on using the changeset viewer.