mgcp: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: I966ce64a908e5f8bf04ce02bc8551367eba4a260 Reviewed-on: https://code.wireshark.org/review/27219 Reviewed-by: Hadar Shoham <hadar.shoham@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
737270dc8c
commit
15f1b0b5e4
|
@ -1870,7 +1870,6 @@ dissect_mgcp_localvoicemetrics(proto_tree *parent_tree, tvbuff_t *tvb, gint offs
|
|||
tokens = wmem_strsplit(wmem_packet_scope(), tokenline, ",", -1);
|
||||
for (i = 0; tokens[i] != NULL; i++)
|
||||
{
|
||||
hf_string = -1;
|
||||
|
||||
tokenlen = (int)strlen(tokens[i]);
|
||||
typval = wmem_strsplit(wmem_packet_scope(), tokens[i], "=", 2);
|
||||
|
@ -2022,7 +2021,6 @@ dissect_mgcp_remotevoicemetrics(proto_tree *parent_tree, tvbuff_t *tvb, gint off
|
|||
tokens = wmem_strsplit(wmem_packet_scope(), tokenline, ",", -1);
|
||||
for (i = 0; tokens[i] != NULL; i++)
|
||||
{
|
||||
hf_string = -1;
|
||||
tokenlen = (int)strlen(tokens[i]);
|
||||
typval = wmem_strsplit(wmem_packet_scope(), tokens[i], "=", 2);
|
||||
if ((typval[0] != NULL) && (typval[1] != NULL))
|
||||
|
|
Loading…
Reference in New Issue