summaryrefslogtreecommitdiff
path: root/epan/expert.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/expert.c')
-rw-r--r--epan/expert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/expert.c b/epan/expert.c
index 240bed7f9e..bd66d8daaf 100644
--- a/epan/expert.c
+++ b/epan/expert.c
@@ -186,7 +186,7 @@ packet_info *pinfo, proto_item *pi, int group, int severity, const char *format,
PROTO_ITEM_SET_GENERATED(ti);
/* if we have a proto_item (not a faked item), set expert attributes to it */
- if(pi != NULL && pi->finfo != NULL) {
+ if(pi != NULL && PITEM_FINFO(pi) != NULL) {
ei->pitem = pi;
expert_set_item_flags(pi, group, severity);
}