From 301e31397f55349bbe90e4948c60f8361cb9ec44 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 4 May 2002 01:31:08 +0000 Subject: * opncls.c (_bfd_new_bfd_contained_in): Check return value of _bfd_new_bfd. --- bfd/opncls.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bfd/opncls.c') 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; -- cgit v1.1