aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bssgp.c
diff options
context:
space:
mode:
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2011-01-16 04:38:59 +0000
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2011-01-16 04:38:59 +0000
commit56d9fdb61527d8dfa71473d91b2a2b3e9aeb0278 (patch)
tree0cbe471a53590fa09a50d2e3386f92de0bcdb786 /epan/dissectors/packet-bssgp.c
parenta3e9358eab24bbc544ac17d7cc6268947d4c2964 (diff)
Move assignment of 'oct' outside of if(tree)--it is used outside of the if block.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35550 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-bssgp.c')
-rw-r--r--epan/dissectors/packet-bssgp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-bssgp.c b/epan/dissectors/packet-bssgp.c
index 1da2c399e2..83c4b6a013 100644
--- a/epan/dissectors/packet-bssgp.c
+++ b/epan/dissectors/packet-bssgp.c
@@ -6624,12 +6624,12 @@ dissect_bssgp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
bi.pdutype = tvb_get_guint8(tvb, 0);
bi.offset++;
+ oct = tvb_get_guint8(tvb,offset);
if (tree) {
ti = proto_tree_add_item(tree, proto_bssgp, tvb, 0, -1, ENC_NA);
bssgp_tree = proto_item_add_subtree(ti, ett_bssgp);
proto_tree_add_item(bssgp_tree, hf_bssgp_msg_type, tvb, 0, 1, ENC_NA);
/* Messge type IE*/
- oct = tvb_get_guint8(tvb,offset);
msg_fcn = NULL;
ett_tree = -1;
hf_idx = -1;