From 29e3fe363eb86648586946faafa935b8423156a1 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Wed, 21 Jan 2015 22:53:54 -0600 Subject: [PATCH] ensure that all of the fields of struct timex are initialized --- compat/adjfreq_freebsd.c | 2 +- compat/adjfreq_linux.c | 2 +- compat/adjfreq_netbsd.c | 2 +- compat/adjfreq_solaris.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/compat/adjfreq_freebsd.c b/compat/adjfreq_freebsd.c index 562464c..953e8b9 100644 --- a/compat/adjfreq_freebsd.c +++ b/compat/adjfreq_freebsd.c @@ -30,7 +30,7 @@ int adjfreq(const int64_t *freq, int64_t *oldfreq) { - struct timex txc; + struct timex txc = { 0 }; int64_t newfreq; if (freq != NULL) { diff --git a/compat/adjfreq_linux.c b/compat/adjfreq_linux.c index e4a8ae9..ddd44b1 100644 --- a/compat/adjfreq_linux.c +++ b/compat/adjfreq_linux.c @@ -30,7 +30,7 @@ int adjfreq(const int64_t *freq, int64_t *oldfreq) { - struct timex txc; + struct timex txc = { 0 }; int64_t newfreq; if (freq != NULL) { diff --git a/compat/adjfreq_netbsd.c b/compat/adjfreq_netbsd.c index 71d3840..1be600e 100644 --- a/compat/adjfreq_netbsd.c +++ b/compat/adjfreq_netbsd.c @@ -31,7 +31,7 @@ int adjfreq(const int64_t *freq, int64_t *oldfreq) { - struct timex txc; + struct timex txc = { 0 }; int64_t newfreq; if (freq != NULL) { diff --git a/compat/adjfreq_solaris.c b/compat/adjfreq_solaris.c index 562464c..953e8b9 100644 --- a/compat/adjfreq_solaris.c +++ b/compat/adjfreq_solaris.c @@ -30,7 +30,7 @@ int adjfreq(const int64_t *freq, int64_t *oldfreq) { - struct timex txc; + struct timex txc = { 0 }; int64_t newfreq; if (freq != NULL) {