]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hwclock: fix gcc warning (uninitialized variable)
authorKarel Zak <kzak@redhat.com>
Wed, 27 Jul 2011 09:14:28 +0000 (11:14 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 27 Jul 2011 09:14:28 +0000 (11:14 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
hwclock/hwclock.c

index b8623d21ef4d1e61e29c74cafb08040d92880c90..f6ae8f0a26a4e252d0977d73ca48df35de47e485 100644 (file)
@@ -531,7 +531,7 @@ set_hardware_clock_exact(const time_t sethwtime,
                         const struct timeval refsystime,
                         const bool universal, const bool testing)
 {
-       time_t newhwtime;
+       time_t newhwtime = sethwtime;
        struct timeval beginsystime, nowsystime;
        double tdiff;
        int time_resync = 1;