Browse Source

ensure that all of the fields of struct timex are initialized

OPENBSD_5_7
Brent Cook 10 years ago
parent
commit
29e3fe363e
4 changed files with 4 additions and 4 deletions
  1. +1
    -1
      compat/adjfreq_freebsd.c
  2. +1
    -1
      compat/adjfreq_linux.c
  3. +1
    -1
      compat/adjfreq_netbsd.c
  4. +1
    -1
      compat/adjfreq_solaris.c

+ 1
- 1
compat/adjfreq_freebsd.c View File

@ -30,7 +30,7 @@
int int
adjfreq(const int64_t *freq, int64_t *oldfreq) adjfreq(const int64_t *freq, int64_t *oldfreq)
{ {
struct timex txc;
struct timex txc = { 0 };
int64_t newfreq; int64_t newfreq;
if (freq != NULL) { if (freq != NULL) {


+ 1
- 1
compat/adjfreq_linux.c View File

@ -30,7 +30,7 @@
int int
adjfreq(const int64_t *freq, int64_t *oldfreq) adjfreq(const int64_t *freq, int64_t *oldfreq)
{ {
struct timex txc;
struct timex txc = { 0 };
int64_t newfreq; int64_t newfreq;
if (freq != NULL) { if (freq != NULL) {


+ 1
- 1
compat/adjfreq_netbsd.c View File

@ -31,7 +31,7 @@
int int
adjfreq(const int64_t *freq, int64_t *oldfreq) adjfreq(const int64_t *freq, int64_t *oldfreq)
{ {
struct timex txc;
struct timex txc = { 0 };
int64_t newfreq; int64_t newfreq;
if (freq != NULL) { if (freq != NULL) {


+ 1
- 1
compat/adjfreq_solaris.c View File

@ -30,7 +30,7 @@
int int
adjfreq(const int64_t *freq, int64_t *oldfreq) adjfreq(const int64_t *freq, int64_t *oldfreq)
{ {
struct timex txc;
struct timex txc = { 0 };
int64_t newfreq; int64_t newfreq;
if (freq != NULL) { if (freq != NULL) {


Loading…
Cancel
Save