aboutsummaryrefslogtreecommitdiffstats
path: root/gawkmisc.c
diff options
context:
space:
mode:
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;
}