summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1996-11-10 08:30:18 +0000
committerBruce Evans <bde@FreeBSD.org>1996-11-10 08:30:18 +0000
commitadb844d545c2945c8884696f2e5beb7ff27a92c9 (patch)
tree90a54e74887e02905346baf1ba74896170804919
parent39172c9401612f4c05354868790f229a8534c23e (diff)
Notes
-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 5516b19a2250..0af3663ad9d1 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);