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