Don't use uninitialized value in receive_packet()

This commit is contained in:
Miroslav Lichvar 2013-06-05 09:56:37 +02:00
parent df968ca47c
commit 32bf32e7d5

View file

@ -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);