diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-11-21 10:43:05 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-11-21 10:43:05 +0200 |
commit | 081af8809fd1dc3e05bac3d313fc0a480b0dd5c0 (patch) | |
tree | 5771fd9f782ae2a9653b8ee7a5059ffaa32897e8 /gawkmisc.c | |
parent | fa17ad763ec4c001a5d1858832e473a3b0ead0fd (diff) | |
parent | e9f1827fcd3a45cbf5a6df93d9e177e3151e1f56 (diff) | |
download | egawk-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } |