Text   |  XML   |  ReML   |   Visible Warnings:

Unreachable Computation  at prefs_dlg.c:740

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

label_to_enum_val

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/prefs_dlg.c)expand/collapse
Show more  
 723  label_to_enum_val(GtkWidget *label, const enum_val_t *enumvals)
 724  {
 725    const gchar *label_string;
 726    int i;
 727   
 728    /* Get the label's text, and translate it to a value.
 729       We match only the descriptions, as those are what appear in
 730       the option menu items or as labels for radio buttons.
 731       We fail if we don't find a match, as that "can't happen". */
 732    label_string = gtk_label_get_text(GTK_LABEL(label));
 733   
 734    for (i = 0; enumvals[i].name != NULL; i++) {
 735      if (g_ascii_strcasecmp(label_string, enumvals[i].description) == 0) {
 736        return enumvals[i].value;
 737      }
 738    }
 739    g_assert_not_reached();
 740    return -1;
 741  }
Show more  




Change Warning 4211.29450 : Unreachable Computation

Priority:
State:
Finding:
Owner:
Note: