mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 13:50:38 -04:00
configure when malloc debugging is turned on (default on head) With help from: dim@ Reported by: pkg-fallout
20 lines
527 B
Text
20 lines
527 B
Text
--- 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)
|
|
{
|