aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bfd/linker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/linker.c b/bfd/linker.c
index d31752b..a679a32 100644
--- a/bfd/linker.c
+++ b/bfd/linker.c
@@ -2946,11 +2946,11 @@ already_linked_newfunc (struct bfd_hash_entry *entry ATTRIBUTE_UNUSED,
struct bfd_section_already_linked_hash_entry *ret =
bfd_hash_allocate (table, sizeof *ret);
- ret->entry = NULL;
-
if (ret == NULL)
return ret;
+ ret->entry = NULL;
+
return &ret->root;
}