summaryrefslogtreecommitdiff
path: root/epan/epan.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-08-10 20:33:01 +0000
committerGerald Combs <gerald@wireshark.org>2012-08-10 20:33:01 +0000
commitcd3cca7edca2c52fea2afce5f248370f5fdcbd4f (patch)
tree2def04abc1c80331776942f588ecae42cfe85291 /epan/epan.c
parentf464eb4b5839cc1a9a222c6a5e3f701af4cb1305 (diff)
downloadwireshark-cd3cca7edca2c52fea2afce5f248370f5fdcbd4f.tar.gz
Make the corresponding packet_info available to each tree item. This
lets us pass a NULL pinfo to expert_add_info_format() and expert_add_undecoded_item(), which makes it possible to use those routines deep in the bowels of many dissectors. As a proof of concept remove the recent pinfo additions to packet-afp.c. This should also make it easier to fix bug 3884. svn path=/trunk/; revision=44435
Diffstat (limited to 'epan/epan.c')
-rw-r--r--epan/epan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/epan.c b/epan/epan.c
index 28b583a218..9b5840069c 100644
--- a/epan/epan.c
+++ b/epan/epan.c
@@ -168,7 +168,7 @@ epan_dissect_init(epan_dissect_t *edt, const gboolean create_proto_tree, const g
g_assert(edt);
if (create_proto_tree) {
- edt->tree = proto_tree_create_root();
+ edt->tree = proto_tree_create_root(&edt->pi);
proto_tree_set_visible(edt->tree, proto_tree_visible);
}
else {