summaryrefslogtreecommitdiff
path: root/capture_opts.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-10-23 15:31:48 +0000
committerMichael Mann <mmann78@netscape.net>2013-10-23 15:31:48 +0000
commit36e13a4c55a5080ae504691c8062f359c3c8668f (patch)
treefa4d5a37b86fca39ef830c568473791cb1fc93e3 /capture_opts.c
parentbe86384b34b8ea02963a335ea05ac186c3eb4b87 (diff)
downloadwireshark-36e13a4c55a5080ae504691c8062f359c3c8668f.tar.gz
Bugfix "Restart the running live capture" when using multiple files makes a long filename. Bug 2274 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2274)
Yes this solution leaks memory, but I think the handful of bytes leaked is worth fixing this nuisance. Won't backport until leak is fixed though. svn path=/trunk/; revision=52793
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 2e77bc1e44..53b6253346 100644
--- a/capture_opts.c
+++ b/capture_opts.c
@@ -97,6 +97,7 @@ capture_opts_init(capture_options *capture_opts)
capture_opts->show_info = TRUE;
capture_opts->quit_after_cap = getenv("WIRESHARK_QUIT_AFTER_CAPTURE") ? TRUE : FALSE;
capture_opts->restart = FALSE;
+ capture_opts->orig_save_file = NULL;
capture_opts->multi_files_on = FALSE;
capture_opts->has_file_duration = FALSE;