]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* functions.m4: Fix typos in previous change.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 29 Oct 2024 23:27:45 +0000 (16:27 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 29 Oct 2024 23:27:45 +0000 (16:27 -0700)
lib/autoconf/functions.m4

index 9422edbd3eff723e79e7e578a702233bf4a00e55..23a0bf8a18bed0af239f30889072670ecf690e6a 100644 (file)
@@ -984,7 +984,7 @@ AC_DEFUN([_AC_FUNC_MALLOC_IF],
             /* Use pmalloc to test; 'volatile' prevents the compiler
                from optimizing the malloc call away.  */
             void *(*volatile pmalloc) (size_t) = malloc;]],
-          [[void *p = pmalloc (nbytes);
+          [[void *p = pmalloc (0);
             int result = !p;
             free (p);
             return result;]])
@@ -1500,7 +1500,7 @@ AC_DEFUN([_AC_FUNC_REALLOC_IF],
             /* Use prealloc to test; 'volatile' prevents the compiler
                from optimizing the realloc call away.  */
             void *(*volatile prealloc) (void *, size_t) = realloc;]],
-          [[void *p = prealloc (n, n);
+          [[void *p = prealloc (0, 0);
             int result = !p;
             free (p);
             return result;]])