From 526dcce74d26743478695b94d3bca985adc4ec83 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Mon, 30 Nov 2015 18:43:03 +0100 Subject: 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 Petri-Dish: Alexis La Goutte Reviewed-by: Dario Lombardo Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- text2pcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'text2pcap.c') 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 { -- cgit v1.2.3