summaryrefslogtreecommitdiff
path: root/m4/realloc.m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-11-03 05:20:41 +0000
committerJim Meyering <jim@meyering.net>1997-11-03 05:20:41 +0000
commitc417b4e7905ee98eb215189079aee3e737a5f77d (patch)
tree585012c500476a568f6034cf3e036766ee4d75c7 /m4/realloc.m4
parent1919353d75012a3689996435e773ca6478b002df (diff)
downloadcoreutils-c417b4e7905ee98eb215189079aee3e737a5f77d.tar.xz
be stricter: check for both P == 0 and N == 0.
Diffstat (limited to 'm4/realloc.m4')
-rw-r--r--m4/realloc.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/realloc.m4 b/m4/realloc.m4
index b4afe939d..431ba5bb8 100644
--- a/m4/realloc.m4
+++ b/m4/realloc.m4
@@ -1,7 +1,7 @@
#serial 1
dnl From Jim Meyering.
-dnl Determine whether realloc accepts 0 as its first argument.
+dnl Determine whether realloc works when both arguments are 0.
dnl If it doesn't, arrange to use the replacement function.
dnl
dnl If you use this macro in a package, you should
@@ -18,7 +18,7 @@ AC_DEFUN(jm_FUNC_REALLOC,
int
main ()
{
- exit (realloc (0, 1) ? 0 : 1);
+ exit (realloc (0, 0) ? 0 : 1);
}
],
jm_cv_func_working_realloc=yes,