Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1698 closed Bug (fixed)

RunTime Check failture

Reported by: spry Owned by: charles
Priority: High Milestone: None Set
Component: libtransmission Version: 1.42+
Severity: Normal Keywords: patch
Cc:

Description

In code

int
tr_sessionGetActiveTorrentCount( tr_session * session )
{
    int ret;
    tr_torrent * tor = NULL;

    while(( tor = tr_torrentNext( session, tor )))
        if( tr_torrentGetActivity( tor ) != TR_STATUS_STOPPED )
            ++ret;
    
    return ret;
}

this

int ret;

should be

int ret = 0;

Change History (3)

comment:1 Changed 12 years ago by charles

  • Keywords patch added
  • Status changed from new to assigned
  • Version changed from 1.42 to 1.42+

comment:2 Changed 12 years ago by charles

  • Resolution set to fixed
  • Status changed from assigned to closed

comment:3 Changed 12 years ago by charles

fix committed to trunk in r7713.

Note: See TracTickets for help on using tickets.