diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2011-04-21 13:34:22 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2011-04-21 13:34:22 +0000 |
commit | 7239db18ecb55d547610017bc240cbb418a60a7b (patch) | |
tree | a89ef5b5e0a1383d24a049678cdea2b9de3e1e12 /asn1/snmp | |
parent | 866aede51e31c8b9c1beb4958ecb64c57c7c1ea6 (diff) | |
download | wireshark-7239db18ecb55d547610017bc240cbb418a60a7b.tar.gz |
Fix Dead Store (Dead nested assignment) Warning found by Clang
svn path=/trunk/; revision=36760
Diffstat (limited to 'asn1/snmp')
-rw-r--r-- | asn1/snmp/packet-snmp-template.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asn1/snmp/packet-snmp-template.c b/asn1/snmp/packet-snmp-template.c index f92a614ba1..0098dbe9c5 100644 --- a/asn1/snmp/packet-snmp-template.c +++ b/asn1/snmp/packet-snmp-template.c @@ -449,7 +449,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"); |