Move assignment of 'oct' outside of if(tree)--it is used outside of the if block.

svn path=/trunk/; revision=35550
This commit is contained in:
Jeff Morriss 2011-01-16 04:38:59 +00:00
parent 77b3392e72
commit b2c0cfa9dd
1 changed files with 1 additions and 1 deletions

View File

@ -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;