From 0bf18eb76a862169daee5e870c89c78cc6b73cfc Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 25 Apr 2005 14:27:00 +0000 Subject: [PATCH] PR872 * objcopy.c (copy_archive): Initialise 'obfd' field of new name_list structure. --- binutils/ChangeLog | 5 +++++ binutils/objcopy.c | 1 + 2 files changed, 6 insertions(+) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 82dec2252..9eb947c42 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,6 +1,11 @@ 2005-04-25 Nick Clifton + PR872 + * objcopy.c (copy_archive): Initialise 'obfd' field of new + name_list structure. + * objcopy.c (copy_usage): Fix description of -K switch. + * doc/binutils.texi (strip, objcopy): Fix description of -K switch. diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 76e1b832a..dfaa1bcaf 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -1627,6 +1627,7 @@ copy_archive (bfd *ibfd, bfd *obfd, const char *output_target) l = xmalloc (sizeof (struct name_list)); l->name = output_name; l->next = list; + l->obfd = NULL; list = l; if (output_bfd == NULL) -- 2.11.4.GIT