aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/file.c b/file.c
index 54172f6e89..79bfcde602 100644
--- a/file.c
+++ b/file.c
@@ -2372,6 +2372,10 @@ cf_print_packets(capture_file *cf, print_args_t *print_args,
}
}
+ /* if num_visible_col is 0, we are done */
+ if (num_visible_col == 0)
+ return CF_PRINT_OK;
+
/* Find the widths for each of the columns - maximum of the
width of the title and the width of the data - and construct
a buffer with a line containing the column titles. */