Changeset 7642


Ignore:
Timestamp:
Jan 8, 2009, 2:05:30 PM (12 years ago)
Author:
charles
Message:

(trunk libT) The buffer is static anyway, no need to malloc it

File:
1 edited

Legend:

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

    r7618 r7642  
    16941694        {
    16951695            int err;
    1696             static uint8_t * buf = NULL;
    1697 
    1698             if( buf == NULL )
    1699                 buf = tr_new( uint8_t, MAX_BLOCK_SIZE );
     1696            static uint8_t buf[MAX_BLOCK_SIZE];
    17001697
    17011698            /* send a block */
Note: See TracChangeset for help on using the changeset viewer.