diff options
Diffstat (limited to 'bfd/sco5-core.c')
-rw-r--r-- | bfd/sco5-core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/sco5-core.c b/bfd/sco5-core.c index e9b5159..e85c4d3 100644 --- a/bfd/sco5-core.c +++ b/bfd/sco5-core.c @@ -129,6 +129,8 @@ sco5_core_file_p (abfd) FILE *stream = bfd_cache_lookup (abfd); struct stat statbuf; + if (stream == NULL) + return NULL; if (fstat (fileno (stream), &statbuf) < 0) { bfd_set_error (bfd_error_system_call); |