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