scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 2f72bc386b56a3b480419a1d6ebaf44fd4c47f8c
parent bd37f2adbf5efc9fbd155c8d919a6611dfa64fb8
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 28 Nov 2017 09:29:40 +0000

[objdump] Add fclose() check to stdout

We have to check if the output is correctly written or there is
some kind of problem with the output stream.

Diffstat:
Mobjdump/main.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/objdump/main.c b/objdump/main.c @@ -255,5 +255,8 @@ main(int argc, char *argv[]) dump(*argv); } + if (fclose(stdout) == EOF) + die("objdump: stdout: %s", strerror(errno)); + return 0; }