aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c
index d50ca46..81030d6 100644
--- a/main.c
+++ b/main.c
@@ -4,7 +4,10 @@
int main(void) {
/* Show the banner with the warning */
- banner();
+ if (banner() < 0) {
+ fputs("Couldn't write welcome banner to stdout!", stderr);
+ exit(EXIT_FAILURE);
+ }
/* Start looping through commands */
loop();