diff options
Diffstat (limited to 'bfd/hppabsd-core.c')
-rw-r--r-- | bfd/hppabsd-core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/hppabsd-core.c b/bfd/hppabsd-core.c index 2ad27351b8..b17acc699f 100644 --- a/bfd/hppabsd-core.c +++ b/bfd/hppabsd-core.c @@ -140,6 +140,8 @@ hppabsd_core_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); |