From 32bf32e7d58d0e990e5494933e064824b0f99c3d Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 5 Jun 2013 09:56:37 +0200 Subject: [PATCH] Don't use uninitialized value in receive_packet() --- ntp_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2