aboutsummaryrefslogtreecommitdiffstats
path: root/getopt.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-09-08 12:47:05 +0200
committerArnold D. Robbins <arnold@skeeve.com>2013-09-08 12:47:05 +0200
commit4661f6cb95c365c434b753cdf6d4c1251f321230 (patch)
treecf1225ec147958393063ad3bb6b3995abecf98a9 /getopt.c
parent187f81febdf5a52d1c646bd83a10c9f03d13947b (diff)
parentc3e4d0cf3f1fd24164e0a58db23b86b56c6dc7c8 (diff)
downloadegawk-4661f6cb95c365c434b753cdf6d4c1251f321230.tar.gz
egawk-4661f6cb95c365c434b753cdf6d4c1251f321230.tar.bz2
egawk-4661f6cb95c365c434b753cdf6d4c1251f321230.zip
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'getopt.c')
-rw-r--r--getopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/getopt.c b/getopt.c
index bab52a05..fa258382 100644
--- a/getopt.c
+++ b/getopt.c
@@ -575,7 +575,7 @@ _getopt_internal_r (int argc, char *const *argv, const char *optstring,
|| pfound->val != p->val)
{
/* Second or later nonexact match found. */
- struct option_list *newp = alloca (sizeof (*newp));
+ struct option_list *newp = malloc (sizeof (*newp));
newp->p = p;
newp->needs_free = 1;
newp->next = ambig_list;