* cache.c (bfd_cache_lookup_worker): Don't abort on failing to
[deliverable/binutils-gdb.git] / bfd / trad-core.c
index defad69f4677e95c55c0aeb38a82f41e0827a25c..c958683344a6d014fb4442a46517968fc51eeb8d 100644 (file)
@@ -112,6 +112,8 @@ trad_unix_core_file_p (abfd)
     FILE *stream = bfd_cache_lookup (abfd);
     struct stat statbuf;
 
+    if (stream == NULL)
+      return 0;
     if (fstat (fileno (stream), &statbuf) < 0)
       {
        bfd_set_error (bfd_error_system_call);
This page took 0.024757 seconds and 4 git commands to generate.