From 0d3068f5244823c1462df4f7bcffb1018fc37e7a Mon Sep 17 00:00:00 2001 From: Radim Kolar <> Date: Mon, 18 Oct 2010 11:47:40 +0200 Subject: [PATCH] Initialize client packet sent counter to zero --- ChangeLog | 1 + client/lib.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d1eded6..a230468 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ Version NEXT fhostcmd: Fixed output of FSP_TRACE variable for Bourne style shells + correctly intialize to zero client packet sent statistic counter Version 2.8.1b26 - 1 Oct 2009 fver now reports if server can process extra data in input packets. diff --git a/client/lib.c b/client/lib.c index 90293ee..2d79c2f 100644 --- a/client/lib.c +++ b/client/lib.c @@ -254,7 +254,7 @@ static RETSIGTYPE client_intr (int signum) void init_client (const char * host, unsigned short port, unsigned short myport) { busy_delay = idle_delay = target_delay; - stat_resends = stat_iresends = stat_dupes = stat_bad = stat_ok; + stat_resends = stat_iresends = stat_dupes = stat_bad = stat_ok = 0; #ifdef HAVE_SRANDOMDEV srandomdev(); #else