From 2e6756e29e9a4b2c1b95e481cc77d48578433187 Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Sun, 18 Apr 2021 12:12:55 +0100 Subject: [PATCH] uninitialised variable wanring --- nqptp-message-handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nqptp-message-handlers.c b/nqptp-message-handlers.c index d55ecd2..b158b51 100644 --- a/nqptp-message-handlers.c +++ b/nqptp-message-handlers.c @@ -450,7 +450,7 @@ void handle_follow_up(char *buf, __attribute__((unused)) ssize_t recv_len, // skewing the offset calculation. int sample_count = MAX_TIMING_SAMPLES - clock_private_info->vacant_samples; - int64_t divergence; + int64_t divergence = 0; if (sample_count > 1) { int f; uint64_t ts = 0; -- 2.47.3