From 82c38af5a13c781f1b8f19e4dfc06791c741ce2f Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 27 Jun 1996 21:10:52 +0000 Subject: (argp_parse): Zero the CHILD_INPUTS vector. --- libshouldbeinlibc/argp-parse.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libshouldbeinlibc/argp-parse.c') 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); -- cgit v1.2.3