Text   |  XML   |  ReML   |   Visible Warnings:

Ignored Return Value  at hostlist_table.c:263

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

hostlist_sort_column

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/hostlist_table.c)expand/collapse
Show more  
 249  hostlist_sort_column(GtkCList *clist, gconstpointer ptr1, gconstpointer ptr2)
 250  {
 251      char *text1 = NULL;
 252      char *text2 = NULL;
 253      guint64 i1, i2;
 254   
 255      const GtkCListRow *row1 = ptr1;
 256      const GtkCListRow *row2 = ptr2;
 257   
 258      text1 = GTK_CELL_TEXT (row1->cell[clist->sort_column])->text;
 259      text2 = GTK_CELL_TEXT (row2->cell[clist->sort_column])->text;
 260   
 261      if (clist->sort_column >= 2 && clist->sort_column <= 7) { /* Integers */
 262          sscanf(text1, "%" G_GINT64_MODIFIER "u", &i1);
 263          sscanf(text2, "%" G_GINT64_MODIFIER "u", &i2);
 264          if (i1 > i2) {
 265              return 1;
 266          } else if (i1 < i2) {
 267              return -1;
 268          } else {
 269              return 0;
 270          }
 271      } else { /* Strings */
 272          return strcmp (text1, text2);
 273      }
 274      g_assert_not_reached();
 275   
 276      /* Allow clist to redraw */
 277   
 278      gtk_clist_thaw(clist);
 279      gtk_clist_freeze(clist);
 280   
 281      return 0;
 282  }
Show more  




Change Warning 5520.35800 : Ignored Return Value

Priority:
State:
Finding:
Owner:
Note: