diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-06-06 14:44:58 +0200 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2015-06-08 17:33:58 +0000 |
commit | a36ec5a0bb60cdf287256929a2b9cfb80171bce6 (patch) | |
tree | cd8205cce4ae726b5cc02b98cb23b62e6543f97b /epan/dissectors/packet-amqp.c | |
parent | 845a832facf0bf17a16b8177cb3fd24736e109f1 (diff) |
AMQP: fix The 'format_name' variable is assigned to itself found by PVS Studio (V570)
Change-Id: I97cdfc20cc635bccea5c96db33f46cdd970e933a
Reviewed-on: https://code.wireshark.org/review/8785
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Petr Gotthard <petr.gotthard@centrum.cz>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-amqp.c')
-rw-r--r-- | epan/dissectors/packet-amqp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-amqp.c b/epan/dissectors/packet-amqp.c index 976c5f538b..0185cb2a9f 100644 --- a/epan/dissectors/packet-amqp.c +++ b/epan/dissectors/packet-amqp.c @@ -10810,7 +10810,7 @@ get_amqp_1_0_type_value_formatter(tvbuff_t *tvb, if (type_name == NULL) format_name=(char*)name; else if (name == NULL) - format_name=(char*)format_name; + format_name=(char*)type_name; else { format_name = (char*) wmem_alloc(wmem_packet_scope(), MAX_BUFFER); |