mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
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:
parent
0c3e62d42c
commit
35564ce926
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=434069
20
math/gmp/files/patch-configure
Normal file
20
math/gmp/files/patch-configure
Normal 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)
|
||||
{
|
Loading…
Reference in New Issue
Block a user