summaryrefslogtreecommitdiffstats
path: root/lib/monotonic.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/monotonic.c')
-rw-r--r--lib/monotonic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/monotonic.c b/lib/monotonic.c
index cd554dd..63feec0 100644
--- a/lib/monotonic.c
+++ b/lib/monotonic.c
@@ -18,10 +18,10 @@
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