static int busywait_for_rtc_clock_tick(const struct hwclock_control *ctl,
const int rtc_fd)
{
- struct tm start_time;
+ struct tm start_time = { 0 };
/* The time when we were called (and started waiting) */
- struct tm nowtime;
+ struct tm nowtime = { 0 };
int rc;
struct timeval begin = { 0 }, now = { 0 };
read_hardware_clock(const struct hwclock_control *ctl,
int *valid_p, time_t *systime_p)
{
- struct tm tm;
+ struct tm tm = { 0 };
int err;
err = ur->read_hardware_clock(ctl, &tm);
static void
set_hardware_clock(const struct hwclock_control *ctl, const time_t newtime)
{
- struct tm new_broken_time;
+ struct tm new_broken_time = { 0 };
/*
* Time to which we will set Hardware Clock, in broken down format,
* in the time zone of caller's choice
set_system_clock(const struct hwclock_control *ctl,
const struct timeval newtime)
{
- struct tm broken;
+ struct tm broken = { 0 };
int minuteswest;
int rc = 0;