From: Jief Date: Fri, 11 Nov 2016 18:16:47 +0000 (+0100) Subject: clock_drift could be left uninitialized. X-Git-Tag: 3.0~4^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F418%2Fhead;p=thirdparty%2Fshairport-sync.git clock_drift could be left uninitialized. clock_drift redeclared instead of initialized with "uint64_t clock_drift = 0". I think this is the correction. --- diff --git a/rtp.c b/rtp.c index 576e7ba0..8d5b46df 100644 --- a/rtp.c +++ b/rtp.c @@ -474,7 +474,7 @@ void *rtp_timing_receiver(void *arg) { if (first_local_time==0) { first_local_time = local_time_chosen; first_remote_time = remote_time_chosen; - uint64_t clock_drift = 0; + clock_drift = 0; } else { uint64_t local_time_change = local_time_chosen - first_local_time; uint64_t remote_time_change = remote_time_chosen - first_remote_time;