diff options
author | David Perry <boolean263@protonmail.com> | 2021-07-07 06:48:41 -0400 |
---|---|---|
committer | David Perry <boolean263@protonmail.com> | 2021-07-07 06:48:41 -0400 |
commit | 8dc1660ef87d9abc495f5f5e9ed495d956e7d1ee (patch) | |
tree | a048b4984d3cb9992966338128e13518c82fde4f /epan/dissectors | |
parent | f9db3ef394bdb1f1d6251c43b09d062e9750a93a (diff) |
Fix compiler warning in packet-json.c
Clang gives a fatal warning about "explicitly assigning value of
variable of type 'int' to itself". The statement (and the `if` around
it) are redundant, so this removes both.
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-json.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/epan/dissectors/packet-json.c b/epan/dissectors/packet-json.c index 64d395385c..5536810063 100644 --- a/epan/dissectors/packet-json.c +++ b/epan/dissectors/packet-json.c @@ -231,11 +231,6 @@ json_string_unescape(tvbparse_elem_t* tok, gboolean keep_outer_parentheses) int i = keep_outer_parentheses == TRUE ? 0 : 1; int length = keep_outer_parentheses == TRUE ? tok->len : tok->len - 1; - if (keep_outer_parentheses == FALSE) - { - i = i; - } - char* str = (char*)wmem_alloc(wmem_packet_scope(), (size_t)length); for (; i < length; i++) { |