aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-08-10 22:52:04 +0000
committerGerald Combs <gerald@wireshark.org>2012-08-10 22:52:04 +0000
commite6ffe7b59b9f36c534d3b2d6cc78b05dfe517f67 (patch)
treefaff173ee2e344f8e3d6e1249740b0cae65c4c9f
parent23ed5c6320bf635bbc09afeefeb56df704244486 (diff)
Add a missing NULL check pointed out by Jakub.
svn path=/trunk/; revision=44437
-rw-r--r--epan/expert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/expert.c b/epan/expert.c
index 414b42320a..21cef79a62 100644
--- a/epan/expert.c
+++ b/epan/expert.c
@@ -166,7 +166,7 @@ expert_set_info_vformat(packet_info *pinfo, proto_item *pi, int group, int sever
proto_tree *tree;
proto_item *ti;
- if (pinfo == NULL && pi->tree_data) {
+ if (pinfo == NULL && pi && pi->tree_data) {
pinfo = PTREE_DATA(pi)->pinfo;
}