summaryrefslogtreecommitdiffstats
path: root/txr.c
diff options
context:
space:
mode:
Diffstat (limited to 'txr.c')
-rw-r--r--txr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/txr.c b/txr.c
index 81fb8d9e..30f5c8ae 100644
--- a/txr.c
+++ b/txr.c
@@ -1027,7 +1027,7 @@ int txr_main(int argc, char **argv)
goto repl;
}
- return (parser.errors || !success) ? EXIT_FAILURE : 0;
+ return success ? 0 : EXIT_FAILURE;
}
}