Ignore:
Timestamp:
Jul 7, 2010, 10:50:22 PM (12 years ago)
Author:
charles
Message:

(2.0x T) #3404 "crash when creating a .torrent containing empty content" -- fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0x/gtk/makemeta-ui.c

    r10340 r10971  
    6868    GtkDialog * d = GTK_DIALOG( ui->progress_dialog );
    6969    GtkProgressBar * p = GTK_PROGRESS_BAR( ui->progress_bar );
    70     const double fraction = (double)b->pieceIndex / b->pieceCount;
     70    const double fraction = b->pieceCount ? ((double)b->pieceIndex / b->pieceCount) : 0;
    7171        char * base = g_path_get_basename( b->top );
    7272
Note: See TracChangeset for help on using the changeset viewer.