summaryrefslogtreecommitdiff
path: root/usr.bin/make/stats.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-06-05 11:59:55 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-06-05 11:59:55 +0000
commitad3efee29882f123678fa3b333ffe95d362fe07f (patch)
tree48dc753fe68b4a5ba8b48e2422d86a401435c90b /usr.bin/make/stats.c
parent7d64392752053c3c94ba590f1bceaa3fab18ec30 (diff)
calloc stats in one-shot case.
Diffstat (limited to 'usr.bin/make/stats.c')
-rw-r--r--usr.bin/make/stats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/make/stats.c b/usr.bin/make/stats.c
index 734922fd7de..3e72a330db3 100644
--- a/usr.bin/make/stats.c
+++ b/usr.bin/make/stats.c
@@ -1,5 +1,5 @@
/* $OpenPackages$ */
-/* $OpenBSD: stats.c,v 1.3 2001/05/29 12:53:43 espie Exp $ */
+/* $OpenBSD: stats.c,v 1.4 2001/06/05 11:59:54 espie Exp $ */
/*
* Copyright (c) 1999 Marc Espie.
@@ -162,7 +162,7 @@ Init_Stats()
}
} else
/* or we don't -> simple stats gathering */
- statarray = emalloc(sizeof(unsigned long) * STAT_NUMBER);
+ statarray = ecalloc(sizeof(unsigned long), STAT_NUMBER);
STAT_INVOCATIONS++;
atexit(print_stats);
}