diff options
author | peter <peter@FreeBSD.org> | 1999-01-15 12:24:56 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-01-15 12:24:56 +0000 |
commit | 652cd28bf72fa0c5ce7c0f7a22f0387696bf7571 (patch) | |
tree | b730ed29b3a8b9d2bd07c4c780ecb69f72d353a9 | |
parent | a87ac22fbf136a0a18a8706475c46cb36e45bc4a (diff) | |
download | FreeBSD-src-652cd28bf72fa0c5ce7c0f7a22f0387696bf7571.zip FreeBSD-src-652cd28bf72fa0c5ce7c0f7a22f0387696bf7571.tar.gz |
Fix(?) an apparent merge glitch. Half of xrealloc() was missing..
-rw-r--r-- | contrib/texinfo/makeinfo/makeinfo.c | 7 |
1 files changed, 7 insertions, 0 deletions
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. */ |