(libT) don't use goto when we don't have to :)
This commit is contained in:
parent
11ad6c7087
commit
94c106388b
|
@ -365,15 +365,11 @@ torrentGet( tr_handle * handle, tr_benc * args_in, tr_benc * args_out )
|
||||||
tr_benc * fields;
|
tr_benc * fields;
|
||||||
char *msg = NULL;
|
char *msg = NULL;
|
||||||
|
|
||||||
if( !tr_bencDictFindList( args_in, "fields", &fields ) ) {
|
if( !tr_bencDictFindList( args_in, "fields", &fields ) )
|
||||||
msg = "no fields specified";
|
msg = "no fields specified";
|
||||||
goto out;
|
else for( i=0; i<torrentCount; ++i )
|
||||||
}
|
|
||||||
|
|
||||||
for( i=0; i<torrentCount; ++i )
|
|
||||||
addInfo( torrents[i], tr_bencListAdd( list ), fields );
|
addInfo( torrents[i], tr_bencListAdd( list ), fields );
|
||||||
|
|
||||||
out:
|
|
||||||
tr_free( torrents );
|
tr_free( torrents );
|
||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue