Text   |  XML   |  ReML   |   Visible Warnings:

Unreachable Data Flow  at sctp_stat_dlg.c:432

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

clist_sort_column

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/sctp_stat_dlg.c)expand/collapse
Show more  
 405  clist_sort_column(GtkCList *clist, gconstpointer ptr1, gconstpointer ptr2)
 406  {
 407          char *text1 = NULL;
 408          char *text2 = NULL;
 409          int i1, i2;
 410   
 411          GtkCListRow *row1 = (GtkCListRow *) ptr1;
 412          GtkCListRow *row2 = (GtkCListRow *) ptr2;
 413          prevent_update = FALSE;
 414          text1 = GTK_CELL_TEXT (row1->cell[clist->sort_column])->text;
 415          text2 = GTK_CELL_TEXT (row2->cell[clist->sort_column])->text;
 416   
 417          switch(clist->sort_column){
 418          case 0:
 419          case 2:
 420                  return strcmp (text1, text2);
 421          case 1:
 422          case 3:
 423          case 4:
 424          case 5:
 425          case 6:
 426          case 7:
 427                  i1=atoi(text1);
 428                  i2=atoi(text2);
 429                  return i1-i2;
 430          }
 431          g_assert_not_reached();
 432          return 0;
 433  }
Show more  




Change Warning 4503.29887 : Unreachable Data Flow

Priority:
State:
Finding:
Owner:
Note: