diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2009-08-21 15:16:27 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2009-08-21 15:16:27 +0000 |
commit | 044aabb9ea061f2e8d1f6038386a6aade8ff487b (patch) | |
tree | 3f16d28de6313d70f18ff47107064aa96550aea1 | |
parent | 6f87844d0a367b1e88f94fce14ceb387695349f7 (diff) | |
download | wireshark-044aabb9ea061f2e8d1f6038386a6aade8ff487b.tar.gz wireshark-044aabb9ea061f2e8d1f6038386a6aade8ff487b.tar.bz2 wireshark-044aabb9ea061f2e8d1f6038386a6aade8ff487b.zip |
Don't try TRY_TO_FAKE_THIS_ITEM in proto_tree_add_bits_ret_val(), as otherwise
the side effect 'return_value' getting set doesn't happen.
svn path=/trunk/; revision=29493
-rw-r--r-- | epan/proto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/proto.c b/epan/proto.c index 6c70f07c3f..7665f78a30 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -6127,7 +6127,7 @@ proto_tree_add_bits_ret_val(proto_tree *tree, int hf_index, tvbuff_t *tvb, gint int bit; int i; - TRY_TO_FAKE_THIS_ITEM(tree, hf_index, hf_field); + PROTO_REGISTRAR_GET_NTH(hf_index, hf_field); if(hf_field -> bitmask != 0) { REPORT_DISSECTOR_BUG(ep_strdup_printf("Incompatible use of proto_tree_add_bits_ret_val with field '%s' (%s) with bitmask != 0", |