Fix Dead Store (Dead nested assignment) Warning found by Clang

svn path=/trunk/; revision=36760
This commit is contained in:
Alexis La Goutte 2011-04-21 13:34:22 +00:00
parent 866aede51e
commit 7239db18ec
2 changed files with 2 additions and 2 deletions

View File

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

View File

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