From: Karel Zak Date: Thu, 23 May 2019 13:28:07 +0000 (+0200) Subject: hwclock: don't use uninitialized value [coverity scan] X-Git-Tag: v2.34-rc2~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=226fdcf06908660ad63682326c76ad419800a900;p=thirdparty%2Futil-linux.git hwclock: don't use uninitialized value [coverity scan] Signed-off-by: Karel Zak --- 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) {