aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2024-03-09 19:48:48 +1030
committerAlan Modra <amodra@gmail.com>2024-03-09 19:52:16 +1030
commit0c947d990a92fd48ac0aa887df7e1e055fa0d680 (patch)
treebc287acb6887630405b1c117e7cb1b2fc759d680 /bfd/bfd.c
parentbd8d76258f86f93b20e6bd94f58033a49eb0d3ec (diff)
downloadgdb-0c947d990a92fd48ac0aa887df7e1e055fa0d680.zip
gdb-0c947d990a92fd48ac0aa887df7e1e055fa0d680.tar.gz
gdb-0c947d990a92fd48ac0aa887df7e1e055fa0d680.tar.bz2
Re: Move bfd_init to bfd.c
Commit b1c95bc4dd73 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.
Diffstat (limited to 'bfd/bfd.c')
-rw-r--r--bfd/bfd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/bfd/bfd.c b/bfd/bfd.c
index 1bdfac6..f40cf94 100644
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -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;