* cache.c (bfd_cache_lookup_worker): Don't abort on failing to
[deliverable/binutils-gdb.git] / bfd / sco5-core.c
index e9b5159e6b3e4e4617716c687501fddc05aae334..e85c4d3793c7497c6750d5ab1f0b36012b0ba74d 100644 (file)
@@ -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);
This page took 0.025079 seconds and 4 git commands to generate.