diff options
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 01c8889b24..02066d8c1e 100644 --- a/bfd/opncls.c +++ b/bfd/opncls.c @@ -799,6 +799,8 @@ bfd_make_writable (bfd *abfd) } bim = bfd_malloc (sizeof (struct bfd_in_memory)); + if (bim == NULL) + return FALSE; /* bfd_error already set. */ abfd->iostream = bim; /* bfd_bwrite will grow these as needed. */ bim->size = 0; |