(trunk libT) fix error in tr_ctorNew() when initializing the default/fallback ctor values

This commit is contained in:
Charles Kerr 2010-04-23 14:13:18 +00:00
parent 19d261fc40
commit 75663defbc
1 changed files with 4 additions and 3 deletions

View File

@ -452,9 +452,10 @@ tr_ctorNew( const tr_session * session )
ctor->session = session;
ctor->bandwidthPriority = TR_PRI_NORMAL;
tr_ctorSetPaused( ctor, TR_FALLBACK, tr_sessionGetPaused( session ) );
tr_ctorSetDeleteSource( ctor, tr_sessionGetDeleteSource( session ) );
if( session != NULL ) {
if( session != NULL )
{
tr_ctorSetDeleteSource( ctor, tr_sessionGetDeleteSource( session ) );
tr_ctorSetPaused( ctor, TR_FALLBACK, tr_sessionGetPaused( session ) );
tr_ctorSetPeerLimit( ctor, TR_FALLBACK, session->peerLimitPerTorrent );
tr_ctorSetDownloadDir( ctor, TR_FALLBACK, session->downloadDir );
}