diff options
author | Alan Modra <amodra@gmail.com> | 2002-05-04 01:31:08 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-05-04 01:31:08 +0000 |
commit | 301e31397f55349bbe90e4948c60f8361cb9ec44 (patch) | |
tree | 90caa5715b2b223d936473b6a213a66284767db7 /bfd/opncls.c | |
parent | 13a393b0d3bc047b7ce69cb25502437d96e8fb95 (diff) | |
download | fsf-binutils-gdb-301e31397f55349bbe90e4948c60f8361cb9ec44.zip fsf-binutils-gdb-301e31397f55349bbe90e4948c60f8361cb9ec44.tar.gz fsf-binutils-gdb-301e31397f55349bbe90e4948c60f8361cb9ec44.tar.bz2 |
* 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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c index 65a2a42..f110259 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; |