Changeset 6877


Ignore:
Timestamp:
Oct 10, 2008, 1:23:21 AM (13 years ago)
Author:
charles
Message:

#1336: silence more compliation warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r6873 r6877  
    632632tr_malloc0( size_t size )
    633633{
    634     void * ret = tr_malloc( size );
    635 
    636     memset( ret, 0, size );
    637     return ret;
     634    return size ? calloc( 1, size ) : NULL;
    638635}
    639636
Note: See TracChangeset for help on using the changeset viewer.