From c3e4d0cf3f1fd24164e0a58db23b86b56c6dc7c8 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sun, 8 Sep 2013 12:46:20 +0200 Subject: Fixes based on problems from a static checker. --- getopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'getopt.c') 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; -- cgit v1.2.3