diff --git a/const.c b/const.c index 704a3f0..61a6b1d 100644 --- a/const.c +++ b/const.c @@ -44,7 +44,7 @@ initconstants(void) { int i; - consttable = (NUMBER **) malloc(sizeof(NUMBER *) * CONSTALLOCSIZE); + consttable = (NUMBER **) calloc(sizeof(NUMBER *), CONSTALLOCSIZE); if (consttable == NULL) { math_error("Unable to allocate constant table"); /*NOTREACHED*/