diff options
author | krj <krj@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-08-21 11:03:30 +0000 |
---|---|---|
committer | krj <krj@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-08-21 11:03:30 +0000 |
commit | 6e7ee075c43e91660a7335d327711220867454eb (patch) | |
tree | 924290365ef9fa9081ef7aede148bdd47a51aeb0 /proto_hier_stats.c | |
parent | bea2e9ffe1e81cf587d56453bb447f975870a75b (diff) |
Also fake empty field_info's by gracefully handling NULL field_info pointer elsewhere.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29490 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'proto_hier_stats.c')
-rw-r--r-- | proto_hier_stats.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/proto_hier_stats.c b/proto_hier_stats.c index edbad8c265..de8510e67c 100644 --- a/proto_hier_stats.c +++ b/proto_hier_stats.c @@ -86,7 +86,8 @@ process_node(proto_node *ptree_node, GNode *parent_stat_node, ph_stats_t *ps, gu GNode *stat_node; finfo = PNODE_FINFO(ptree_node); - g_assert(finfo); + /* We don't fake protocol nodes we expect them to have a field_info */ + g_assert(finfo && "dissection with faked proto tree?"); /* If the field info isn't related to a protocol but to a field, * don't count them, as they don't belong to any protocol. |