Zero memory used by mpn_lshift_com configure test, this should fix

configure when malloc debugging is turned on (default on head)

With help from:	dim@
Reported by:	pkg-fallout
This commit is contained in:
Antoine Brodin 2017-02-14 09:40:20 +00:00
parent 0c3e62d42c
commit 35564ce926
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=434069

View File

@ -0,0 +1,20 @@
--- configure.orig 2016-12-16 15:45:32 UTC
+++ configure
@@ -6776,7 +6776,7 @@ main ()
long i;
for (i = 0; i < 88 + 1; i++)
a[i] = ~0L;
- r = malloc (10000 * sizeof (unsigned long));
+ r = calloc (10000, sizeof(unsigned long));
r2 = r;
for (i = 0; i < 528; i += 23)
{
@@ -8394,7 +8394,7 @@ main ()
long i;
for (i = 0; i < 88 + 1; i++)
a[i] = ~0L;
- r = malloc (10000 * sizeof (unsigned long));
+ r = calloc (10000, sizeof(unsigned long));
r2 = r;
for (i = 0; i < 528; i += 23)
{