aboutsummaryrefslogtreecommitdiffstats
path: root/gawkmisc.c
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2014-12-14 12:53:35 -0500
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2014-12-14 12:53:35 -0500
commit1fc7a1fe6aba3c1ba98c44f8df1926c10ff79c87 (patch)
treee6eff5ba1ffaa2250c59ce02464d783b08508f4c /gawkmisc.c
parentf9c7ec30542ef2550761f49cd25503e0775ef271 (diff)
parent0d52289482d468c8566976d77c0c6a6a4e602add (diff)
downloadegawk-1fc7a1fe6aba3c1ba98c44f8df1926c10ff79c87.tar.gz
egawk-1fc7a1fe6aba3c1ba98c44f8df1926c10ff79c87.tar.bz2
egawk-1fc7a1fe6aba3c1ba98c44f8df1926c10ff79c87.zip
Merge branch 'master' into select
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;
}