diff options
author | bde <bde@FreeBSD.org> | 1996-11-10 08:30:18 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-11-10 08:30:18 +0000 |
commit | d6f309e9f68ce21cd234242f4504bf3da519ca0c (patch) | |
tree | 90a54e74887e02905346baf1ba74896170804919 /usr.bin/systat | |
parent | 322740214553c0eff2101725aa8f5e1c4a50644d (diff) | |
download | FreeBSD-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.c | 2 |
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); |