diff options
| -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); |
