From 511867cdf4a56da9a261cd57e75873ae89a21d8e Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 31 Mar 2019 12:52:27 -0700 Subject: Don't draw the taps if we never got a capture file. There's nothing to draw. Maybe we should also avoid it if we didn't get any packets. Change-Id: If76f7909f78e66b7302d0ab2caa284ca36c43bfb Reviewed-on: https://code.wireshark.org/review/32649 Reviewed-by: Guy Harris --- tshark.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tshark.c') 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(); -- cgit v1.2.3