forked from osmocom/wireshark
Fix Dead Store (Dead nested assignment) Warning found by Clang
svn path=/trunk/; revision=36760
This commit is contained in:
parent
866aede51e
commit
7239db18ec
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue