aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2023-06-15 19:23:19 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2023-06-15 19:24:58 +0000
commit9e379f9639d51442ad1d5e1800c687ef2c954901 (patch)
treed2660248fc92c643afad36b75aa1dc5b5ad94678
parent19aebfbf80b375ecaa807b36b06d55b34b953f3e (diff)
downloadsrc-9e379f9639d51442ad1d5e1800c687ef2c954901.tar.gz
src-9e379f9639d51442ad1d5e1800c687ef2c954901.zip
-rw-r--r--usr.bin/asa/asa.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.bin/asa/asa.c b/usr.bin/asa/asa.c
index 22174ed340cd..11438b607466 100644
--- a/usr.bin/asa/asa.c
+++ b/usr.bin/asa/asa.c
@@ -81,6 +81,9 @@ main(int argc, char *argv[])
}
}
+ if (fflush(stdout) != 0)
+ err(1, "stdout");
+
exit(exval);
}
@@ -140,4 +143,7 @@ asa(FILE *f)
putchar('\n');
}
+
+ if (ferror(stdout) != 0)
+ err(1, "stdout");
}