From 226fdcf06908660ad63682326c76ad419800a900 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 23 May 2019 15:28:07 +0200 Subject: [PATCH] hwclock: don't use uninitialized value [coverity scan] Signed-off-by: Karel Zak --- sys-utils/hwclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c index 9512f696ef..a2c5cc2a49 100644 --- a/sys-utils/hwclock.c +++ b/sys-utils/hwclock.c @@ -971,7 +971,7 @@ manipulate_clock(const struct hwclock_control *ctl, const time_t set_time, */ struct timeval startup_hclocktime = { 0 }; /* Total Hardware Clock drift correction needed. */ - struct timeval tdrift; + struct timeval tdrift = { 0 }; if ((ctl->set || ctl->systohc || ctl->adjust) && (adjtime->local_utc == UTC) != ctl->universal) { -- 2.39.2