From: Miroslav Lichvar Date: Wed, 5 Jun 2013 07:56:37 +0000 (+0200) Subject: Don't use uninitialized value in receive_packet() X-Git-Tag: 1.28-pre1~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32bf32e7d58d0e990e5494933e064824b0f99c3d;p=thirdparty%2Fchrony.git Don't use uninitialized value in receive_packet() --- diff --git a/ntp_core.c b/ntp_core.c index 96441a29..228c0873 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -945,7 +945,7 @@ receive_packet(NTP_Packet *message, struct timeval *now, double now_err, NCR_Ins properly (e.g. for the first sample received in a peering connection). */ theta = delta = epsilon = 0.0; - + sample_time = *now; } peer_distance = epsilon + 0.5 * fabs(delta);