diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-03-31 12:52:27 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-03-31 19:53:22 +0000 |
commit | 511867cdf4a56da9a261cd57e75873ae89a21d8e (patch) | |
tree | bdfeda8a923f8c0f47a38b1660095e58cd3fe0e0 | |
parent | 666d77db4540a2520608a2a410532c57b6efab85 (diff) |
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 <guy@alum.mit.edu>
-rw-r--r-- | tshark.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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(); |