summaryrefslogtreecommitdiff
path: root/gawkmisc.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-11-22 20:38:31 +0200
committerArnold D. Robbins <arnold@skeeve.com>2014-11-22 20:38:31 +0200
commit838f65088cda84edc2df609d3e388acb3c8eb13d (patch)
tree9841c5f5bcec1057c38d9d1480c8a1d4ec57dbc3 /gawkmisc.c
parent1fc15398cbd381b83e20bca3913c12ee7aa34bd4 (diff)
downloadgawk-838f65088cda84edc2df609d3e388acb3c8eb13d.tar.gz
Dork around with xmalloc for z/OS.
Diffstat (limited to 'gawkmisc.c')
-rw-r--r--gawkmisc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gawkmisc.c b/gawkmisc.c
index a729d88d..0172a810 100644
--- a/gawkmisc.c
+++ b/gawkmisc.c
@@ -52,6 +52,8 @@ pointer
xmalloc(size_t bytes)
{
pointer p;
+ if (bytes == 0)
+ bytes = 1; /* avoid dfa.c mishegos */
emalloc(p, pointer, bytes, "xmalloc");
return p;
}