diff options
Diffstat (limited to 'bfd/bfdwin.c')
-rw-r--r-- | bfd/bfdwin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/bfdwin.c b/bfd/bfdwin.c index d3e4ba8..1450ab0 100644 --- a/bfd/bfdwin.c +++ b/bfd/bfdwin.c @@ -153,6 +153,8 @@ bfd_get_file_window (bfd *abfd, abfd = abfd->my_archive; } f = bfd_cache_lookup (abfd); + if (f == NULL) + return FALSE; fd = fileno (f); /* Compute offsets and size for mmap and for the user's data. */ |