Changeset 6521


Ignore:
Timestamp:
Aug 14, 2008, 11:45:12 AM (13 years ago)
Author:
charles
Message:

(libT) don't use goto when we don't have to :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/rpc.c

    r6515 r6521  
    366366    char *msg = NULL;
    367367
    368     if( !tr_bencDictFindList( args_in, "fields", &fields ) ) {
     368    if( !tr_bencDictFindList( args_in, "fields", &fields ) )
    369369        msg = "no fields specified";
    370         goto out;
    371     }
    372 
    373     for( i=0; i<torrentCount; ++i )
     370    else for( i=0; i<torrentCount; ++i )
    374371        addInfo( torrents[i], tr_bencListAdd( list ), fields );
    375372
    376 out:
    377373    tr_free( torrents );
    378374    return msg;
Note: See TracChangeset for help on using the changeset viewer.