summaryrefslogtreecommitdiff
path: root/bfd/bfdwin.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/bfdwin.c')
-rw-r--r--bfd/bfdwin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/bfdwin.c b/bfd/bfdwin.c
index d3e4ba83d1..1450ab0e96 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. */