merge_select_frame_type(in_file_count, in_files),
merge_max_snapshot_length(in_file_count, in_files), &open_err);
if (pdh == NULL) {
+ close(out_fd);
merge_close_in_files(in_file_count, in_files);
free(in_files);
cf_open_failure_alert_box(out_filename, open_err, err_info, TRUE,
if (!merge_ok) {
/* merge failed */
- close(out_fd); /* XXX - isn't it already closed? */
return;
}
break;
case(1):
/* open and read the capture file (this will close an existing file) */
- if (cf_open(&cfile, in_filenames[0], FALSE, &err) == CF_OK) {
- cf_read(&cfile);
- add_menu_recent_capture_file(in_filenames[0]);
- } else {
- /* the capture file couldn't be read (doesn't exist, file format unknown, ...) */
- }
+ if (cf_open(&cfile, in_filenames[0], FALSE, &err) == CF_OK) {
+ /* XXX - add this to the menu if the read fails? */
+ cf_read(&cfile);
+ add_menu_recent_capture_file(in_filenames[0]);
+ } else {
+ /* the capture file couldn't be read (doesn't exist, file format unknown, ...) */
+ }
break;
default:
/* build and show the info dialog */