Fix a use of an uninitialised variable in the bfd linker.

PR 27050
	* lexsup.c (parse_args): Ensure that the longind local variable is
	set.
This commit is contained in:
Nick Clifton
2020-12-14 12:40:13 +00:00
parent 6abe7848fa
commit 3991c7acb2
2 changed files with 7 additions and 1 deletions

View File

@@ -718,7 +718,7 @@ parse_args (unsigned argc, char **argv)
last_optind = -1;
while (1)
{
int longind;
int longind = 0;
int optc;
static unsigned int defsym_count;