Changeset 6490 for trunk/gtk/tr-core.c


Ignore:
Timestamp:
Aug 11, 2008, 7:05:02 PM (13 years ago)
Author:
charles
Message:

lots of C correctness tweaks suggested by sparse/cgcc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-core.c

    r6344 r6490  
    10401040    gboolean allowHibernation;
    10411041    tr_handle * session = tr_core_handle( core );
     1042    tr_torrent * tor = NULL;
    10421043
    10431044    /* allow hibernation unless we have active torrents */
    10441045    allowHibernation = TRUE;
    1045     tr_torrent * tor = NULL;
    10461046    while(( tor = tr_torrentNext( session, tor ))) {
    10471047        if( tr_torrentGetStatus( tor ) != TR_STATUS_STOPPED ) {
Note: See TracChangeset for help on using the changeset viewer.