1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

(libT) silence a compiler warning

This commit is contained in:
Charles Kerr 2008-11-21 16:53:58 +00:00
parent 853a67fbfc
commit 06b80ebc0e

View file

@ -20,6 +20,8 @@
****
***/
static struct tr_session_stats STATS_INIT = { 0.0f, 0, 0, 0, 0, 0 };
struct tr_stats_handle
{
tr_session_stats single;
@ -117,7 +119,7 @@ tr_statsInit( tr_handle * handle )
void
tr_statsClose( tr_handle * handle )
{
tr_session_stats cumulative;
tr_session_stats cumulative = STATS_INIT;
tr_sessionGetCumulativeStats( handle, &cumulative );
saveCumulativeStats( handle, &cumulative );
@ -174,7 +176,7 @@ tr_sessionGetCumulativeStats( const tr_handle * handle,
tr_session_stats * setme )
{
const struct tr_stats_handle * stats = getStats( handle );
tr_session_stats current;
tr_session_stats current = STATS_INIT;
if( stats )
{