diff options
author | Karel Zak | 2019-05-23 15:28:07 +0200 |
---|---|---|
committer | Karel Zak | 2019-05-23 15:28:07 +0200 |
commit | 226fdcf06908660ad63682326c76ad419800a900 (patch) | |
tree | 61e6021e5a29e2ca3a656709830d749acad1c861 /sys-utils | |
parent | fallocate: make posix_fadvise() use more readable for analyzers (diff) | |
download | kernel-qcow2-util-linux-226fdcf06908660ad63682326c76ad419800a900.tar.gz kernel-qcow2-util-linux-226fdcf06908660ad63682326c76ad419800a900.tar.xz kernel-qcow2-util-linux-226fdcf06908660ad63682326c76ad419800a900.zip |
hwclock: don't use uninitialized value [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils')
-rw-r--r-- | sys-utils/hwclock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c index 9512f696e..a2c5cc2a4 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) { |