aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-snmp.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2011-04-21 13:34:22 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2011-04-21 13:34:22 +0000
commit7239db18ecb55d547610017bc240cbb418a60a7b (patch)
treea89ef5b5e0a1383d24a049678cdea2b9de3e1e12 /epan/dissectors/packet-snmp.c
parent866aede51e31c8b9c1beb4958ecb64c57c7c1ea6 (diff)
Fix Dead Store (Dead nested assignment) Warning found by Clang
svn path=/trunk/; revision=36760
Diffstat (limited to 'epan/dissectors/packet-snmp.c')
-rw-r--r--epan/dissectors/packet-snmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-snmp.c b/epan/dissectors/packet-snmp.c
index b54339a0d2..f45908d8c3 100644
--- a/epan/dissectors/packet-snmp.c
+++ b/epan/dissectors/packet-snmp.c
@@ -551,7 +551,7 @@ dissect_snmp_VarBind(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset,
/* then we have the value's header */
offset = get_ber_identifier(tvb, offset, &ber_class, &pc, &tag);
- value_offset = offset = get_ber_length(tvb, offset, &value_len, &ind);
+ value_offset = get_ber_length(tvb, offset, &value_len, &ind);
if (! (!pc) ) {
proto_item* pi = proto_tree_add_text(tree, tvb, seq_offset, seq_len,"the value must be in primitive encoding");