From 652cd28bf72fa0c5ce7c0f7a22f0387696bf7571 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 15 Jan 1999 12:24:56 +0000 Subject: Fix(?) an apparent merge glitch. Half of xrealloc() was missing.. --- contrib/texinfo/makeinfo/makeinfo.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'contrib/texinfo') diff --git a/contrib/texinfo/makeinfo/makeinfo.c b/contrib/texinfo/makeinfo/makeinfo.c index ef892db..d709db4 100644 --- a/contrib/texinfo/makeinfo/makeinfo.c +++ b/contrib/texinfo/makeinfo/makeinfo.c @@ -1199,6 +1199,13 @@ xrealloc (pointer, nbytes) else temp = (void *)realloc (pointer, nbytes); + if (nbytes && temp == (void *)NULL) + memory_error ("xrealloc", nbytes); + + return (temp); +} + + /* If EXIT_VALUE is zero, print the full usage message to stdout. Otherwise, just say to use --help for more info. Then exit with EXIT_VALUE. */ -- cgit v1.1