aboutsummaryrefslogtreecommitdiffstats
path: root/capture_opts.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2011-07-11 22:51:46 +0000
committerGerald Combs <gerald@wireshark.org>2011-07-11 22:51:46 +0000
commit8cbaab380e85e8e433254a604ebbedddb0362cbb (patch)
tree42a6934e704c84d13a91c64d0a7e1da86ab676a1 /capture_opts.c
parent53f69df3616cbb553892649baf1db45179cdb2c6 (diff)
Having a non-NULL capture_opts->save_file might make us crash less.
svn path=/trunk/; revision=37983
Diffstat (limited to 'capture_opts.c')
-rw-r--r--capture_opts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/capture_opts.c b/capture_opts.c
index 4cd142fafb..af631d0ae3 100644
--- a/capture_opts.c
+++ b/capture_opts.c
@@ -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) */