Text   |  XML   |  ReML   |   Visible Warnings:

Unreachable Computation  at file_dlg.c:90

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

file_selection_new

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/file_dlg.c)expand/collapse
Show more  
 51  GtkWidget *
 52  file_selection_new(const gchar *title, file_selection_action_t action)
 53  {
 54    GtkWidget *win;
 55    GtkFileChooserAction gtk_action;
 56  #ifdef _WIN32 
 57    char *u3devicedocumentpath;
 58  #endif  
 59    const gchar *ok_button_text;
 60   
 61    switch (action) {
 62   
 63    case FILE_SELECTION_OPEN:
 64      gtk_action = GTK_FILE_CHOOSER_ACTION_OPEN;
 65      ok_button_text = GTK_STOCK_OPEN;
 66      break;
 67   
 68    case FILE_SELECTION_READ_BROWSE:
 69      gtk_action = GTK_FILE_CHOOSER_ACTION_OPEN;
 70      ok_button_text = GTK_STOCK_OK;
 71      break;
 72   
 73    case FILE_SELECTION_SAVE:
 74      gtk_action = GTK_FILE_CHOOSER_ACTION_SAVE;
 75      ok_button_text = GTK_STOCK_SAVE;
 76      break;
 77   
 78    case FILE_SELECTION_WRITE_BROWSE:
 79      gtk_action = GTK_FILE_CHOOSER_ACTION_SAVE;
 80      ok_button_text = GTK_STOCK_OK;
 81      break;
 82   
 83    case FILE_SELECTION_CREATE_FOLDER:
 84      gtk_action = GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER;
 85      ok_button_text = GTK_STOCK_OK;
 86      break;
 87   
 88    default:
 89      g_assert_not_reached();
 90      gtk_action = -1;
 91      ok_button_text = NULL;
 92      break;
 93    }
 94    win = gtk_file_chooser_dialog_new(title, GTK_WINDOW(top_level), gtk_action,
 95  #ifndef _WIN32 
 96                                      GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
 97                                      ok_button_text, GTK_RESPONSE_ACCEPT,
 98  #else
 99                                      ok_button_text, GTK_RESPONSE_ACCEPT,
 100                                      GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
 101  #endif
 102                                      NULL);
 103   
 104    /* If we've opened a file before, start out by showing the files in the directory 
 105       in which that file resided. */
 106    if (last_open_dir)
 107      file_selection_set_current_folder(win, last_open_dir);
 108  #ifdef _WIN32 
 109    else {
 110          u3devicedocumentpath = getenv_utf8("U3_DEVICE_DOCUMENT_PATH");
 111          if(u3devicedocumentpath != NULL)
 112            file_selection_set_current_folder(win, u3devicedocumentpath);
 113   
 114    }
 115  #endif
 116    return win;
 117  }
Show more  




Change Warning 3960.29726 : Unreachable Computation

Priority:
State:
Finding:
Owner:
Note: