summaryrefslogtreecommitdiffstats
path: root/hwclock/hwclock.c
diff options
context:
space:
mode:
authorKarel Zak2011-07-27 11:14:28 +0200
committerKarel Zak2011-07-27 11:14:28 +0200
commit36acca1e26a05b87174336e1b0284a3d350858fb (patch)
tree0b5406ccaa641ad5496050623558437bb0ecb636 /hwclock/hwclock.c
parentMerge branch 'hwclock' of https://github.com/kerolasa/lelux-utiliteetit (diff)
downloadkernel-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.c2
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;