mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-22 09:04:58 +00:00
If fclose fails, set bfd_error to system_call_error.
This commit is contained in:
parent
700b2ee3ef
commit
09141f8dd5
@ -127,10 +127,13 @@ DEFUN(bfd_cache_delete,(abfd),
|
||||
{
|
||||
boolean ret;
|
||||
|
||||
if (fclose ((FILE *)(abfd->iostream)) == EOF)
|
||||
ret = false;
|
||||
else
|
||||
if (fclose ((FILE *)(abfd->iostream)) == 0)
|
||||
ret = true;
|
||||
else
|
||||
{
|
||||
ret = false;
|
||||
bfd_error = system_call_error;
|
||||
}
|
||||
snip (abfd);
|
||||
abfd->iostream = NULL;
|
||||
open_files--;
|
||||
|
Loading…
x
Reference in New Issue
Block a user