diff options
author | Karel Zak | 2015-07-29 14:15:14 +0200 |
---|---|---|
committer | Karel Zak | 2015-07-29 14:20:06 +0200 |
commit | a172badb03c22d3ad1b00ff16f458b071063db18 (patch) | |
tree | 993be0f4bb16ae196b64e60644d788e320aedf39 /sys-utils/hwclock.c | |
parent | libfdisk: result of operation is garbage or undefined [clang analyze] (diff) | |
download | kernel-qcow2-util-linux-a172badb03c22d3ad1b00ff16f458b071063db18.tar.gz kernel-qcow2-util-linux-a172badb03c22d3ad1b00ff16f458b071063db18.tar.xz kernel-qcow2-util-linux-a172badb03c22d3ad1b00ff16f458b071063db18.zip |
hwclock: make static analyzes more happy
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/hwclock.c')
-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 cadbf3075..f04cf2b08 100644 --- a/sys-utils/hwclock.c +++ b/sys-utils/hwclock.c @@ -1260,7 +1260,7 @@ manipulate_clock(const bool show, const bool adjust, const bool noadjfile, const bool testing, const bool predict, const bool get) { /* Contents of the adjtime file, or what they should be. */ - struct adjtime adjtime; + struct adjtime adjtime = { 0 }; bool universal; /* Set if user lacks necessary authorization to access the clock */ bool no_auth; |