aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tshark.c b/tshark.c
index 67fa547793..2409bdf182 100644
--- a/tshark.c
+++ b/tshark.c
@@ -2212,7 +2212,12 @@ main(int argc, char *argv[])
cfile.provider.frames = NULL;
}
- draw_tap_listeners(TRUE);
+ /*
+ * If we never got a capture file, don't draw the taps; we not only
+ * didn't capture any packets, we never even did any capturing.
+ */
+ if (cfile.filename != NULL)
+ draw_tap_listeners(TRUE);
/* Memory cleanup */
reset_tap_listeners();
funnel_dump_all_text_windows();