From 75663defbc6d139d8c01433bd905eeccbbf54f79 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 23 Apr 2010 14:13:18 +0000 Subject: [PATCH] (trunk libT) fix error in tr_ctorNew() when initializing the default/fallback ctor values --- libtransmission/torrent-ctor.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libtransmission/torrent-ctor.c b/libtransmission/torrent-ctor.c index a95ffbf6c..267510bd8 100644 --- a/libtransmission/torrent-ctor.c +++ b/libtransmission/torrent-ctor.c @@ -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 ); }