diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index 92175b8ff0cb..2e7ca8b78532 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -479,6 +479,7 @@ sysctl_kern_clockrate(SYSCTL_HANDLER_ARGS) /* * Construct clockinfo structure. */ + bzero(&clkinfo, sizeof(clkinfo)); clkinfo.hz = hz; clkinfo.tick = tick; clkinfo.profhz = profhz; diff --git a/sys/sys/time.h b/sys/sys/time.h index 5236549e5fa2..5c25eceae97d 100644 --- a/sys/sys/time.h +++ b/sys/sys/time.h @@ -255,6 +255,7 @@ struct itimerval { struct clockinfo { int hz; /* clock frequency */ int tick; /* micro-seconds per hz tick */ + int spare; int stathz; /* statistics clock frequency */ int profhz; /* profiling clock frequency */ };