path: root/capture.c
diff options
authorUlf Lamping <ulf.lamping@web.de>2005-04-12 00:54:52 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-04-12 00:54:52 +0000
commit06ef0a3b5234f99d64ff11819b5182d3fb12dd78 (patch)
tree7b034594d6fb03ec669868485bc6475f1d66006d /capture.c
parent61ccc8baf1f786dc42c7f3e86a564d151974cbb3 (diff)
it should now be possible to use "Update packets in real time" even if used with one of the "Multiple files" option.
If this is used together with an option where input files changes too fast (e.g. new file every second), capturing will be (hopefully) stopped. I've replaced the former capture pipe message format into a somewhat more general format to remove a lot of confusion. svn path=/trunk/; revision=14054
Diffstat (limited to 'capture.c')
1 files changed, 4 insertions, 3 deletions
diff --git a/capture.c b/capture.c
index 637711e8f8..951b02114b 100644
--- a/capture.c
+++ b/capture.c
@@ -326,9 +326,10 @@ capture_input_closed(capture_options *capture_opts)
/* We're not doing a capture any more, so we don't have a save file. */
- g_assert(capture_opts->save_file);
- g_free(capture_opts->save_file);
- capture_opts->save_file = NULL;
+ if(capture_opts->save_file) {
+ g_free(capture_opts->save_file);
+ capture_opts->save_file = NULL;
+ }