Ignore:
Timestamp:
Oct 8, 2007, 1:37:20 AM (15 years ago)
Author:
charles
Message:

fix atom initialization issue with r3320

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r3320 r3321  
    846846    if( !peerIsKnown( t, addr ) )
    847847    {
    848         struct peer_atom * a = tr_new( struct peer_atom, 1 );
     848        struct peer_atom * a = tr_new0( struct peer_atom, 1 );
    849849        a->addr = *addr;
    850850        a->port = port;
    851851        a->flags = flags;
    852852        a->from = from;
    853         a->time = 0;
    854853        tordbg( t, "got a new atom: %s", tr_peerIoAddrStr(&a->addr,a->port) );
    855854        tr_ptrArrayInsertSorted( t->pool, a, comparePeerAtoms );
Note: See TracChangeset for help on using the changeset viewer.