projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96c82a1
)
gcov: check return code of a fclose
author
Vincent Lefèvre
<vincent-gcc@vinc17.net>
Wed, 4 Aug 2021 15:25:52 +0000
(17:25 +0200)
committer
Martin Liska
<mliska@suse.cz>
Wed, 4 Aug 2021 15:26:28 +0000
(17:26 +0200)
gcc/ChangeLog:
PR gcov-profile/101773
* gcov-io.c (gcov_close): Check return code of a fclose.
gcc/gcov-io.c
patch
|
blob
|
history
diff --git
a/gcc/gcov-io.c
b/gcc/gcov-io.c
index
4b1e11d
..
7819593
100644
(file)
--- a/
gcc/gcov-io.c
+++ b/
gcc/gcov-io.c
@@
-199,7
+199,9
@@
gcov_close (void)
{
if (gcov_var.file)
{
- fclose (gcov_var.file);
+ if (fclose (gcov_var.file))
+ gcov_var.error = 1;
+
gcov_var.file = 0;
}
gcov_var.mode = 0;