summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-11-10 08:30:18 +0000
committerbde <bde@FreeBSD.org>1996-11-10 08:30:18 +0000
commitd6f309e9f68ce21cd234242f4504bf3da519ca0c (patch)
tree90a54e74887e02905346baf1ba74896170804919 /usr.bin/systat
parent322740214553c0eff2101725aa8f5e1c4a50644d (diff)
downloadFreeBSD-src-d6f309e9f68ce21cd234242f4504bf3da519ca0c.zip
FreeBSD-src-d6f309e9f68ce21cd234242f4504bf3da519ca0c.tar.gz
Initialize interrupt counters. The boot time values were displayed as ***.
Should be in 2.2. Pointed out by: /etc/malloc.conf -> AJ
Diffstat (limited to 'usr.bin/systat')
-rw-r--r--usr.bin/systat/vmstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c
index 5516b19..0af3663 100644
--- a/usr.bin/systat/vmstat.c
+++ b/usr.bin/systat/vmstat.c
@@ -625,7 +625,7 @@ allocinfo(s)
struct Info *s;
{
- s->intrcnt = (long *) malloc(nintr * sizeof(long));
+ s->intrcnt = (long *) calloc(nintr, sizeof(long));
if (s->intrcnt == NULL) {
fprintf(stderr, "systat: out of memory\n");
exit(2);
OpenPOWER on IntegriCloud