ntp: initialize network correction of transmitted packets

Initialize the unused value of network correction parsed from
own transmitted packets to avoid a use-of-uninitialized-value error
in NIO_UnwrapMessage() reported by clang.

Fixes: 6372a9f93f ("ntp: save PTP correction from NTP-over-PTP messages")
This commit is contained in:
Miroslav Lichvar 2023-11-02 12:41:55 +01:00
parent 1488b31a38
commit 51a621bc2b

View file

@ -727,7 +727,7 @@ NIO_Linux_ProcessMessage(SCK_Message *message, NTP_Local_Address *local_addr,
{
struct Interface *iface;
int is_tx, ts_if_index, l2_length;
double c;
double c = 0.0;
is_tx = event == SCH_FILE_EXCEPTION;
iface = NULL;