summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-06-27 21:10:52 +0000
committerMiles Bader <miles@gnu.org>1996-06-27 21:10:52 +0000
commit82c38af5a13c781f1b8f19e4dfc06791c741ce2f (patch)
treea2ceae1f8e9be3b6d41546d391394fe439b835f6
parent0d4c2d45b84d3c654c392486d214e3df45865e6f (diff)
(argp_parse): Zero the CHILD_INPUTS vector.
-rw-r--r--libshouldbeinlibc/argp-parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libshouldbeinlibc/argp-parse.c b/libshouldbeinlibc/argp-parse.c
index b967590f..230eb596 100644
--- a/libshouldbeinlibc/argp-parse.c
+++ b/libshouldbeinlibc/argp-parse.c
@@ -492,7 +492,9 @@ argp_parse (const struct argp *argp, int argc, char **argv, unsigned flags,
long_end->name = NULL;
groups = alloca ((num_groups + 1) * sizeof (struct group));
+
child_inputs = alloca (num_child_inputs * sizeof (void *));
+ bzero (child_inputs, num_child_inputs * sizeof (void *));
if (state.argp)
egroup = convert_options (state.argp, 0, 0, groups);