Text   |  XML   |  ReML   |   Visible Warnings:

Unreachable Data Flow  at voip_calls_dlg.c:657

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

voip_calls_sort_column

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/voip_calls_dlg.c)expand/collapse
Show more  
 620  voip_calls_sort_column(GtkCList *clist, gconstpointer ptr1, gconstpointer ptr2)
 621  {
 622          char *text1 = NULL;
 623          char *text2 = NULL;
 624          guint i1, i2, i3, i4;
 625   
 626          const GtkCListRow *row1 = (const GtkCListRow *) ptr1;
 627          const GtkCListRow *row2 = (const GtkCListRow *) ptr2;
 628   
 629          text1 = GTK_CELL_TEXT (row1->cell[clist->sort_column])->text;
 630          text2 = GTK_CELL_TEXT (row2->cell[clist->sort_column])->text;
 631   
 632          switch(clist->sort_column){
 633          case CALL_COL_START_TIME:
 634          case CALL_COL_STOP_TIME:
 635                  if ((sscanf(text1, "%u.%u", &i1, &i2) != 2) ||
 636                          (sscanf(text2, "%u.%u", &i3, &i4) != 2) ){
 637                                  return 0;
 638                          }
 639                  if (i1>i3)
 640                          return 1;
 641                  if (i1<i3)
 642                          return -1;
 643                  return (i3-i4);
 644          case CALL_COL_INITIAL_SPEAKER:
 645          case CALL_COL_FROM:
 646          case CALL_COL_TO:
 647          case CALL_COL_PROTOCOL:
 648          case CALL_COL_STATE:
 649          case CALL_COL_COMMENTS:
 650                  return strcmp (text1, text2);
 651          case CALL_COL_PACKETS:
 652                  i1=atoi(text1);
 653                  i2=atoi(text2);
 654                  return i1-i2;
 655          }
 656          g_assert_not_reached();
 657          return 0;
 658  }
Show more  




Change Warning 4642.30066 : Unreachable Data Flow

Priority:
State:
Finding:
Owner:
Note: