aboutsummaryrefslogtreecommitdiff
path: root/libps/procstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'libps/procstat.c')
-rw-r--r--libps/procstat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libps/procstat.c b/libps/procstat.c
index 0d4a565b..9f488cd6 100644
--- a/libps/procstat.c
+++ b/libps/procstat.c
@@ -361,7 +361,7 @@ summarize_thread_basic_info (struct procinfo *pi, ps_flags_t have)
if (!tbi)
return 0;
- bzero (tbi, sizeof *tbi);
+ memset (tbi, 0, sizeof *tbi);
for (i = 0; i < pi->nthreads; i++)
if (! pi->threadinfos[i].died
@@ -458,7 +458,7 @@ summarize_thread_sched_info (struct procinfo *pi)
if (!tsi)
return 0;
- bzero (tsi, sizeof *tsi);
+ memset (tsi, 0, sizeof *tsi);
for (i = 0; i < pi->nthreads; i++)
if (! pi->threadinfos[i].died