Changeset 9933


Ignore:
Timestamp:
Jan 14, 2010, 9:37:27 PM (12 years ago)
Author:
charles
Message:

(trunk libT) add in some assertions to try & smoke out Yada's crash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bitset.h

    r9931 r9933  
    1717#ifndef TR_BITSET_H
    1818#define TR_BITSET_H 1
     19
     20#include <assert.h>
    1921
    2022#include "transmission.h"
     
    5153        tr_bitfieldDestruct( &b->bitfield );
    5254        tr_bitfieldConstruct( &b->bitfield, size );
     55
     56        assert( b != NULL );
     57        assert( b->bitfield.bits != NULL );
     58        assert( tmp->bits != NULL );
     59
    5360        memcpy( b->bitfield.bits, tmp->bits, tmp->byteCount );
    5461
Note: See TracChangeset for help on using the changeset viewer.