aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wspython
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2009-07-18 20:10:14 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2009-07-18 20:10:14 +0000
commit484de73a117bbf8f9fd2a5c0d41e93cb411a4a39 (patch)
tree6f8332c29a1b5eeb2d843d99c1280199364d3b63 /epan/wspython
parent3de2e2a698946362f9f922a2a56add75fbbd9d2a (diff)
From Kovarththanan Rajaratnam via bug 3719:
This patch optimizes proto_tree_prime_hfid() + friends and plugs a memleak in the process. From me: Removed unused hfindex in proto_tree_new_item() Fixed ref_count entry in struct header_field_info. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29137 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/wspython')
-rw-r--r--epan/wspython/wspy_proto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wspython/wspy_proto.c b/epan/wspython/wspy_proto.c
index 5bf673e9ce..2b1dcc6b45 100644
--- a/epan/wspython/wspy_proto.c
+++ b/epan/wspython/wspy_proto.c
@@ -70,7 +70,7 @@ void hf_register_info_add(hf_register_info *hf, guint8 index,
hf[index].hfinfo.blurb = blurb;
hf[index].hfinfo.id = 0;
hf[index].hfinfo.parent = 0;
- hf[index].hfinfo.ref_count = 0;
+ hf[index].hfinfo.ref_count = HF_REF_TYPE_NONE;
hf[index].hfinfo.bitshift = 0;
hf[index].hfinfo.same_name_next = NULL;
hf[index].hfinfo.same_name_prev = NULL;