Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at service_response_time_table.c:126

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/service_response_time_table.c)expand/collapse
Show more  
 100  srt_sort_column(GtkCList *clist, gconstpointer ptr1, gconstpointer ptr2)
 101  {
 102          char *text1 = NULL;
 103          char *text2 = NULL;
 104          int i1, i2;
 105          float f1,f2;
 106   
 107          const GtkCListRow *row1 = ptr1;
 108          const GtkCListRow *row2 = ptr2;
 109   
 110          text1 = GTK_CELL_TEXT (row1->cell[clist->sort_column])->text;
 111          text2 = GTK_CELL_TEXT (row2->cell[clist->sort_column])->text;
 112   
 113          switch(clist->sort_column){
 114          case 1:
 115                  return strcmp (text1, text2);
 116          case 0:
 117          case 2:
 118                  i1=atoi(text1);
 119                  i2=atoi(text2);
 120                  return i1-i2;
 121          case 3:
 122          case 4:
 123          case 5:
 124                  sscanf(text1,"%f",&f1);
 125                  sscanf(text2,"%f",&f2);
 126                  if(fabs(f1-f2)<0.000005)
Show more  




Change Warning 4282.30056 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: