From 33216455a7084992c03481fee8a8320f98677ae1 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 5 May 2004 15:46:35 +0000 Subject: Remove checks of the return value from bfd_cache_ookup() --- bfd/sco5-core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bfd/sco5-core.c') diff --git a/bfd/sco5-core.c b/bfd/sco5-core.c index 5c34ff1b55..b88bd7b1af 100644 --- a/bfd/sco5-core.c +++ b/bfd/sco5-core.c @@ -123,13 +123,12 @@ sco5_core_file_p (abfd) char *secname; flagword flags; - /* Read coreoffsets region at end of core (see core(FP)) */ + /* Read coreoffsets region at end of core (see core(FP)). */ { 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); -- cgit v1.2.1