|author||Guy Harris <firstname.lastname@example.org>||2019-03-31 12:52:27 -0700|
|committer||Guy Harris <email@example.com>||2019-03-31 19:53:22 +0000|
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 <firstname.lastname@example.org>
Diffstat (limited to 'tshark.c')
1 files changed, 6 insertions, 1 deletions
@@ -2212,7 +2212,12 @@ main(int argc, char *argv)
cfile.provider.frames = NULL;
+ * 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)
/* Memory cleanup */