diff options
author | Karel Zak | 2011-07-27 11:14:28 +0200 |
---|---|---|
committer | Karel Zak | 2011-07-27 11:14:28 +0200 |
commit | 36acca1e26a05b87174336e1b0284a3d350858fb (patch) | |
tree | 0b5406ccaa641ad5496050623558437bb0ecb636 /hwclock/hwclock.c | |
parent | Merge branch 'hwclock' of https://github.com/kerolasa/lelux-utiliteetit (diff) | |
download | kernel-qcow2-util-linux-36acca1e26a05b87174336e1b0284a3d350858fb.tar.gz kernel-qcow2-util-linux-36acca1e26a05b87174336e1b0284a3d350858fb.tar.xz kernel-qcow2-util-linux-36acca1e26a05b87174336e1b0284a3d350858fb.zip |
hwclock: fix gcc warning (uninitialized variable)
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'hwclock/hwclock.c')
-rw-r--r-- | hwclock/hwclock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hwclock/hwclock.c b/hwclock/hwclock.c index b8623d21e..f6ae8f0a2 100644 --- a/hwclock/hwclock.c +++ b/hwclock/hwclock.c @@ -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; |