diff options
author | alagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-04-21 16:00:38 +0000 |
---|---|---|
committer | alagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-04-21 16:00:38 +0000 |
commit | b4ab6e28da76ad044600e276be15ce94436a36aa (patch) | |
tree | 9811af3511969c6ee99f60bf171eaaa2b236a0ce | |
parent | 19dc488442aa9d34de1f6293801e2e1319ced52e (diff) |
Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36771 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | asn1/snmp/packet-snmp-template.c | 2 | ||||
-rw-r--r-- | epan/dissectors/packet-snmp.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/asn1/snmp/packet-snmp-template.c b/asn1/snmp/packet-snmp-template.c index 0098dbe9c5..959008cfb5 100644 --- a/asn1/snmp/packet-snmp-template.c +++ b/asn1/snmp/packet-snmp-template.c @@ -1711,7 +1711,7 @@ dissect_snmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } } /* then comes an INTEGER (version)*/ - offset = get_ber_identifier(tvb, offset, &tmp_class, &tmp_pc, &tmp_tag); + get_ber_identifier(tvb, offset, &tmp_class, &tmp_pc, &tmp_tag); if((tmp_class!=BER_CLASS_UNI)||(tmp_tag!=BER_UNI_TAG_INTEGER)) { return 0; } diff --git a/epan/dissectors/packet-snmp.c b/epan/dissectors/packet-snmp.c index f45908d8c3..5228412794 100644 --- a/epan/dissectors/packet-snmp.c +++ b/epan/dissectors/packet-snmp.c @@ -2935,7 +2935,7 @@ dissect_snmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } } /* then comes an INTEGER (version)*/ - offset = get_ber_identifier(tvb, offset, &tmp_class, &tmp_pc, &tmp_tag); + get_ber_identifier(tvb, offset, &tmp_class, &tmp_pc, &tmp_tag); if((tmp_class!=BER_CLASS_UNI)||(tmp_tag!=BER_UNI_TAG_INTEGER)) { return 0; } |