Changeset 7134


Ignore:
Timestamp:
Nov 21, 2008, 4:53:58 PM (12 years ago)
Author:
charles
Message:

(libT) silence a compiler warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/stats.c

    r7126 r7134  
    2121***/
    2222
     23static struct tr_session_stats STATS_INIT = { 0.0f, 0, 0, 0, 0, 0 };
     24
    2325struct tr_stats_handle
    2426{
     
    118120tr_statsClose( tr_handle * handle )
    119121{
    120     tr_session_stats cumulative;
     122    tr_session_stats cumulative = STATS_INIT;
    121123
    122124    tr_sessionGetCumulativeStats( handle, &cumulative );
     
    175177{
    176178    const struct tr_stats_handle * stats = getStats( handle );
    177     tr_session_stats current;
     179    tr_session_stats current = STATS_INIT;
    178180
    179181    if( stats )
Note: See TracChangeset for help on using the changeset viewer.