]> git.ipfire.org Git - thirdparty/nqptp.git/commitdiff
uninitialised variable wanring
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Sun, 18 Apr 2021 11:12:55 +0000 (12:12 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Sun, 18 Apr 2021 11:12:55 +0000 (12:12 +0100)
nqptp-message-handlers.c

index d55ecd2f96be3029f771cc71eefe05694e1c1630..b158b51192420cf6dc292e86b4f2fb5c4d99103b 100644 (file)
@@ -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;