forked from osmocom/wireshark
Having a non-NULL capture_opts->save_file might make us crash less.
svn path=/trunk/; revision=37983
This commit is contained in:
parent
53f69df361
commit
8cbaab380e
|
@ -697,6 +697,7 @@ capture_opts_add_opt(capture_options *capture_opts, int opt, const char *optarg_
|
|||
case 'w': /* Write to capture file x */
|
||||
capture_opts->saving_to_file = TRUE;
|
||||
g_free(capture_opts->save_file);
|
||||
capture_opts->save_file = g_strdup(optarg_str_p);
|
||||
status = capture_opts_output_to_pipe(capture_opts->save_file, &capture_opts->output_to_pipe);
|
||||
return status;
|
||||
case 'g': /* enable group read access on the capture file(s) */
|
||||
|
|
Loading…
Reference in New Issue