summaryrefslogtreecommitdiff
path: root/getloadavg.c
diff options
context:
space:
mode:
Diffstat (limited to 'getloadavg.c')
-rw-r--r--getloadavg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/getloadavg.c b/getloadavg.c
index 9367e47..2c29191 100644
--- a/getloadavg.c
+++ b/getloadavg.c
@@ -704,7 +704,7 @@ getloadavg (double loadavg[], int nelem)
for (i = 0; i < conf.config_maxclass; ++i)
{
struct class_stats stats;
- bzero ((char *) &stats, sizeof stats);
+ memset (&stats, '\0', sizeof stats);
desc.sd_type = CPUTYPE_CLASS;
desc.sd_objid = i;