aboutsummaryrefslogtreecommitdiffstats
path: root/gawkmisc.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-11-21 10:43:05 +0200
committerArnold D. Robbins <arnold@skeeve.com>2014-11-21 10:43:05 +0200
commit081af8809fd1dc3e05bac3d313fc0a480b0dd5c0 (patch)
tree5771fd9f782ae2a9653b8ee7a5059ffaa32897e8 /gawkmisc.c
parentfa17ad763ec4c001a5d1858832e473a3b0ead0fd (diff)
parente9f1827fcd3a45cbf5a6df93d9e177e3151e1f56 (diff)
downloadegawk-081af8809fd1dc3e05bac3d313fc0a480b0dd5c0.tar.gz
egawk-081af8809fd1dc3e05bac3d313fc0a480b0dd5c0.tar.bz2
egawk-081af8809fd1dc3e05bac3d313fc0a480b0dd5c0.zip
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'gawkmisc.c')
-rw-r--r--gawkmisc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gawkmisc.c b/gawkmisc.c
index a729d88d..fff5cc56 100644
--- a/gawkmisc.c
+++ b/gawkmisc.c
@@ -51,7 +51,8 @@ extern pointer xmalloc(size_t bytes); /* get rid of gcc warning */
pointer
xmalloc(size_t bytes)
{
- pointer p;
- emalloc(p, pointer, bytes, "xmalloc");
+ pointer p = malloc(bytes);
+ if (!p && bytes)
+ xalloc_die ();
return p;
}