Signed-off-by: Karel Zak <kzak@redhat.com>
*/
static void print_stats(struct fsck_instance *inst)
{
- struct timeval delta;
+ struct timeval delta = { 0 };
if (!inst || !report_stats || noexecute)
return;
int get_boot_time(struct timeval *boot_time)
{
#ifdef CLOCK_BOOTTIME
- struct timespec hires_uptime;
- struct timeval lores_uptime;
+ struct timespec hires_uptime = { 0 };
+ struct timeval lores_uptime = { 0 };
#endif
- struct timeval now;
+ struct timeval now = { 0 };
#ifdef HAVE_SYSINFO
struct sysinfo info;
#endif