From 8cbaab380e85e8e433254a604ebbedddb0362cbb Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Mon, 11 Jul 2011 22:51:46 +0000 Subject: [PATCH] Having a non-NULL capture_opts->save_file might make us crash less. svn path=/trunk/; revision=37983 --- capture_opts.c | 1 + 1 file changed, 1 insertion(+) 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) */