summaryrefslogtreecommitdiff
path: root/bfd/opncls.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2002-05-04 01:31:08 +0000
committerAlan Modra <amodra@bigpond.net.au>2002-05-04 01:31:08 +0000
commite69dec093e49839c727300a037581fb6ea1a9150 (patch)
treef51861386425699051b8222d145489d7aef20600 /bfd/opncls.c
parentb83fff37fe1ec2f601cdc9bbd88fe0788de0ef04 (diff)
downloadbinutils-redhat-e69dec093e49839c727300a037581fb6ea1a9150.tar.gz
* opncls.c (_bfd_new_bfd_contained_in): Check return value of
_bfd_new_bfd.
Diffstat (limited to 'bfd/opncls.c')
-rw-r--r--bfd/opncls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c
index 65a2a4252f..f110259737 100644
--- a/bfd/opncls.c
+++ b/bfd/opncls.c
@@ -93,6 +93,8 @@ _bfd_new_bfd_contained_in (obfd)
bfd *nbfd;
nbfd = _bfd_new_bfd ();
+ if (nbfd == NULL)
+ return NULL;
nbfd->xvec = obfd->xvec;
nbfd->my_archive = obfd;
nbfd->direction = read_direction;