Text   |  XML   |  ReML   |   Visible Warnings:

Unreachable Data Flow  at expert_dlg.c:304

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

srt_sort_column

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/expert_dlg.c)expand/collapse
Show more  
 280  srt_sort_column(GtkCList *clist, gconstpointer ptr1, gconstpointer ptr2)
 281  {
 282          char *text1 = NULL;
 283          char *text2 = NULL;
 284          int i1, i2;
 285   
 286          const GtkCListRow *row1 = ptr1;
 287          const GtkCListRow *row2 = ptr2;
 288   
 289          text1 = GTK_CELL_TEXT (row1->cell[clist->sort_column])->text;
 290          text2 = GTK_CELL_TEXT (row2->cell[clist->sort_column])->text;
 291   
 292          switch(clist->sort_column){
 293          case 0:
 294                  i1=atoi(text1);
 295                  i2=atoi(text2);
 296                  return i1-i2;
 297          case 1:
 298          case 2:
 299          case 3:
 300          case 4:
 301                  return strcmp (text1, text2);
 302          }
 303          g_assert_not_reached();
 304          return 0;
 305  }
Show more  




Change Warning 4281.29883 : Unreachable Data Flow

Because they are very similar, this warning shares annotations with warning 4281.30055.

Priority:
State:
Finding:
Owner:
Note: