summaryrefslogtreecommitdiff
path: root/tshark.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-10-02 20:47:20 +0000
committerGuy Harris <guy@alum.mit.edu>2012-10-02 20:47:20 +0000
commit692bd926992eb07431d58c172ae362cd31957dca (patch)
tree6d39408f1994d68dffc58a9089a4274d74e3382d /tshark.c
parent88324e39bb926809aad3ace24300298d9b7be27e (diff)
downloadwireshark-692bd926992eb07431d58c172ae362cd31957dca.tar.gz
Fix a comment, add another comment, and fix indentation.
svn path=/trunk/; revision=45268
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tshark.c b/tshark.c
index 118c75e205..2546726920 100644
--- a/tshark.c
+++ b/tshark.c
@@ -2548,13 +2548,13 @@ process_packet_first_pass(capture_file *cf,
/* Grab any resolved addresses */
host_name_lookup_process(NULL);
- if (cf->rfcode)
- create_proto_tree = TRUE;
+ /* If we're going to be applying a read filter, we'll need to
+ create a protocol tree against which to apply the filter. */
+ if (cf->rfcode)
+ create_proto_tree = TRUE;
- /* The protocol tree will be "visible", i.e., printed, only if we're
- printing packet details, which is true if we're printing stuff
- ("print_packet_info" is true) and we're in verbose mode ("verbose"
- is true). */
+ /* We're not going to display the protocol tree on this pass,
+ so it's not going to be "visible". */
epan_dissect_init(&edt, create_proto_tree, FALSE);
/* If we're running a read filter, prime the epan_dissect_t with that