aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bpdu.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-11-28 20:31:13 +0000
committerGuy Harris <guy@alum.mit.edu>2012-11-28 20:31:13 +0000
commitfe9fe6b6e9069e07b9c491918e3e6f127395236c (patch)
tree7375d7c2810a2cbb5708e7eb33f349a46eb89af8 /epan/dissectors/packet-bpdu.c
parentbab056d43cf3489965da72a077674197fcdcda3e (diff)
Squelch a "may be uninitialized" warning.
svn path=/trunk/; revision=46255
Diffstat (limited to 'epan/dissectors/packet-bpdu.c')
-rw-r--r--epan/dissectors/packet-bpdu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-bpdu.c b/epan/dissectors/packet-bpdu.c
index 78785e5d0c..87e7f3a98b 100644
--- a/epan/dissectors/packet-bpdu.c
+++ b/epan/dissectors/packet-bpdu.c
@@ -662,9 +662,8 @@ dissect_bpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
if (protocol_version_identifier == 3) {
set_actual_length(tvb, BPDU_MSTI + total_msti_length);
- } else {
- msti_len_temp = total_msti_length;
}
+ msti_len_temp = total_msti_length;
mstp_item = proto_tree_add_text(bpdu_tree, tvb, BPDU_VERSION_3_LENGTH,
-1, "MST Extension");