Text   |  XML   |  ReML   |   Visible Warnings:

Unreachable Call  at prefs_gui.c:435

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

gui_prefs_fetch

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/prefs_gui.c)expand/collapse
Show more  
 393  gui_prefs_fetch(GtkWidget *w)
 394  {
 395          prefs.gui_plist_sel_browse = fetch_enum_value(
 396              g_object_get_data(G_OBJECT(w), PLIST_SEL_BROWSE_KEY), selection_mode_vals);
 397          prefs.gui_ptree_sel_browse = fetch_enum_value(
 398              g_object_get_data(G_OBJECT(w), PTREE_SEL_BROWSE_KEY), selection_mode_vals);
 399          prefs.gui_geometry_save_position =
 400              gtk_toggle_button_get_active(g_object_get_data(G_OBJECT(w), GEOMETRY_POSITION_KEY));
 401          prefs.gui_geometry_save_size =
 402              gtk_toggle_button_get_active(g_object_get_data(G_OBJECT(w), GEOMETRY_SIZE_KEY));
 403          prefs.gui_geometry_save_maximized =
 404              gtk_toggle_button_get_active(g_object_get_data(G_OBJECT(w), GEOMETRY_MAXIMIZED_KEY));
 405   
 406  #ifdef HAVE_IGE_MAC_INTEGRATION 
 407          prefs.gui_macosx_style =
 408              gtk_toggle_button_get_active(g_object_get_data(G_OBJECT(w), MACOSX_STYLE_KEY));
 409  #endif
 410   
 411  #ifdef _WIN32 
 412          prefs.gui_console_open = fetch_enum_value(
 413              g_object_get_data(G_OBJECT(w), GUI_CONSOLE_OPEN_KEY), gui_console_open_vals);
 414  #endif
 415          prefs.gui_fileopen_style = fetch_preference_radio_buttons_val(
 416              g_object_get_data(G_OBJECT(w), GUI_FILEOPEN_KEY), gui_fileopen_vals);
 417           
 418          g_free(prefs.gui_fileopen_dir);
 419          prefs.gui_fileopen_dir = g_strdup(gtk_entry_get_text(
 420                                                GTK_ENTRY(g_object_get_data(G_OBJECT(w), GUI_FILEOPEN_DIR_KEY))));
 421   
 422          prefs.gui_ask_unsaved =  
 423                  gtk_toggle_button_get_active(g_object_get_data(G_OBJECT(w), GUI_ASK_UNSAVED_KEY));
 424   
 425          prefs.gui_find_wrap =  
 426                  gtk_toggle_button_get_active(g_object_get_data(G_OBJECT(w), GUI_FIND_WRAP_KEY));
 427   
 428          prefs.gui_use_pref_save =  
 429                  gtk_toggle_button_get_active(g_object_get_data(G_OBJECT(w), GUI_USE_PREF_SAVE_KEY));
 430   
 431          prefs.gui_version_in_start_page  =  
 432                  gtk_toggle_button_get_active(g_object_get_data(G_OBJECT(w), GUI_SHOW_VERSION_KEY));
 433   
 434          if (browser_needs_pref()) {
 435                  g_free(prefs.gui_webbrowser);
 436                  prefs.gui_webbrowser = g_strdup(gtk_entry_get_text(
 437                                                          GTK_ENTRY(g_object_get_data(G_OBJECT(w), GUI_WEBBROWSER_KEY))));
 438          }
 439          /*
 440           * XXX - we need to have a way to fetch the preferences into 
 441           * local storage and only set the permanent preferences if there
 442           * weren't any errors in those fetches, as there are several
 443           * places where there *can* be a bad preference value.
 444           */
 445          if (font_fetch()) {
 446                  if (strcmp(new_font_name, prefs.gui_font_name) != 0) {
 447                          font_changed = TRUE;
 448                          g_free(prefs.gui_font_name);
 449                          prefs.gui_font_name = g_strdup(new_font_name);
 450                  }
 451          }
 452  }
Show more  




Change Warning 4218.30611 : Unreachable Call

Priority:
State:
Finding:
Owner:
Note: