From 74df3c673320c06481f5c5b18ff7979a3034a9e5 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 29 Oct 2024 16:27:45 -0700 Subject: [PATCH] * functions.m4: Fix typos in previous change. --- lib/autoconf/functions.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4 index 9422edbd..23a0bf8a 100644 --- a/lib/autoconf/functions.m4 +++ b/lib/autoconf/functions.m4 @@ -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;]]) -- 2.47.2