aboutsummaryrefslogtreecommitdiffstats
path: root/text2pcap.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2015-11-30 18:43:03 +0100
committerMichael Mann <mmann78@netscape.net>2015-12-21 15:30:06 +0000
commit526dcce74d26743478695b94d3bca985adc4ec83 (patch)
tree867fe108e2f18b8c29ba53674051faca764bc109 /text2pcap.c
parentf9c0796ce120a343874e238d155d8816f1022fcf (diff)
text2pcap: fix There are identical sub-expressions 'num_packets_written' to the left and to the right of the '-' operator found by PVS Studio (V501)
Change-Id: Ib3fb73f6cc3dba549bd3104e9227f4e4a6e3b08c Reviewed-on: https://code.wireshark.org/review/12310 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'text2pcap.c')
-rw-r--r--text2pcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/text2pcap.c b/text2pcap.c
index 3f002fd86c..bf16e150c5 100644
--- a/text2pcap.c
+++ b/text2pcap.c
@@ -972,7 +972,7 @@ write_file_trailer (void)
0,
0,
num_packets_written,
- num_packets_written - num_packets_written,
+ 0,
&err);
} else {