Re: Move bfd_init to bfd.c

Commit b1c95bc4dd cleared some bfd static variables, with bad
results since bfd_set_error_program_name is often called before
bfd_init.

	* bfd.c (bfd_init): Don't clear _bfd_error_program_name.
This commit is contained in:
Alan Modra 2024-03-09 19:48:48 +10:30
parent bd8d76258f
commit 0c947d990a

View file

@ -1748,7 +1748,6 @@ bfd_init (void)
input_bfd = NULL;
_bfd_clear_error_data ();
input_error = bfd_error_no_error;
_bfd_error_program_name = NULL;
_bfd_error_internal = error_handler_fprintf;
_bfd_assert_handler = _bfd_default_assert_handler;