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

(trunk libT) #2429: add some more assertions to help smoke out this bug

This commit is contained in:
Charles Kerr 2009-09-28 18:22:57 +00:00
parent a88683d650
commit d08ab9e510

View file

@ -549,6 +549,8 @@ loadFromFile( tr_torrent * tor,
tr_bool boolVal;
const tr_bool wasDirty = tor->isDirty;
assert( tr_isTorrent( tor ) );
filename = getResumeFilename( tor );
if( tr_bencLoadFile( &top, TR_FMT_BENC, filename ) )
@ -730,6 +732,8 @@ tr_torrentLoadResume( tr_torrent * tor,
{
uint64_t ret = 0;
assert( tr_isTorrent( tor ) );
ret |= useManditoryFields( tor, fieldsToLoad, ctor );
fieldsToLoad &= ~ret;
ret |= loadFromFile( tor, fieldsToLoad );