From 3991c7acb29aa8d7d52150695eb3efa03a08dd50 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 14 Dec 2020 12:40:13 +0000 Subject: 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. --- ld/lexsup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ld/lexsup.c') diff --git a/ld/lexsup.c b/ld/lexsup.c index 0d10bc6..88e33a1 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c @@ -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; -- cgit v1.1