summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-02-16 06:47:17 -0800
committerKaz Kylheku <kaz@kylheku.com>2018-02-16 06:47:17 -0800
commit0146e43c35b095d483bfa359f7d09ccc2addeb8e (patch)
treeefc940256afce2ccb35028571cf0d6aed04c565d
parentf8c0d779eaae9ba08d2c16fd21ae707eee92b18c (diff)
downloadtxr-0146e43c35b095d483bfa359f7d09ccc2addeb8e.tar.gz
txr-0146e43c35b095d483bfa359f7d09ccc2addeb8e.tar.bz2
txr-0146e43c35b095d483bfa359f7d09ccc2addeb8e.zip
Eliminate always false expression.
* txr.c (txr_main): Since parser.errors being nonzero is handled earlier, it must be zero at the final return point and need not be tested.
-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;
}
}