diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1996-11-10 08:30:18 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1996-11-10 08:30:18 +0000 |
| commit | adb844d545c2945c8884696f2e5beb7ff27a92c9 (patch) | |
| tree | 90a54e74887e02905346baf1ba74896170804919 | |
| parent | 39172c9401612f4c05354868790f229a8534c23e (diff) | |
Notes
| -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 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); |
