mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +00:00
(libT) silence a compiler warning
This commit is contained in:
parent
853a67fbfc
commit
06b80ebc0e
1 changed files with 4 additions and 2 deletions
|
@ -20,6 +20,8 @@
|
||||||
****
|
****
|
||||||
***/
|
***/
|
||||||
|
|
||||||
|
static struct tr_session_stats STATS_INIT = { 0.0f, 0, 0, 0, 0, 0 };
|
||||||
|
|
||||||
struct tr_stats_handle
|
struct tr_stats_handle
|
||||||
{
|
{
|
||||||
tr_session_stats single;
|
tr_session_stats single;
|
||||||
|
@ -117,7 +119,7 @@ tr_statsInit( tr_handle * handle )
|
||||||
void
|
void
|
||||||
tr_statsClose( tr_handle * handle )
|
tr_statsClose( tr_handle * handle )
|
||||||
{
|
{
|
||||||
tr_session_stats cumulative;
|
tr_session_stats cumulative = STATS_INIT;
|
||||||
|
|
||||||
tr_sessionGetCumulativeStats( handle, &cumulative );
|
tr_sessionGetCumulativeStats( handle, &cumulative );
|
||||||
saveCumulativeStats( handle, &cumulative );
|
saveCumulativeStats( handle, &cumulative );
|
||||||
|
@ -174,7 +176,7 @@ tr_sessionGetCumulativeStats( const tr_handle * handle,
|
||||||
tr_session_stats * setme )
|
tr_session_stats * setme )
|
||||||
{
|
{
|
||||||
const struct tr_stats_handle * stats = getStats( handle );
|
const struct tr_stats_handle * stats = getStats( handle );
|
||||||
tr_session_stats current;
|
tr_session_stats current = STATS_INIT;
|
||||||
|
|
||||||
if( stats )
|
if( stats )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue