]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hwclock: make static analyzes more happy
authorKarel Zak <kzak@redhat.com>
Wed, 29 Jul 2015 12:15:14 +0000 (14:15 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 29 Jul 2015 12:20:06 +0000 (14:20 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/hwclock.c

index cadbf30756cd5b684c0d68d603146a7aa7f8b7a4..f04cf2b0805e0a72fe12f3693d11fa67e0217eee 100644 (file)
@@ -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;