summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-02-14 12:41:51 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-02-14 12:41:51 -0500
commit4fdc29a88b9923d874375c72774a01a91a7fc253 (patch)
treea47f14cf14c7467f7d41b6a107e0d23b6f50afcc /eval.c
parent35bc722cbc22a054cf7843676dcd7667cc364480 (diff)
downloadbfs-4fdc29a88b9923d874375c72774a01a91a7fc253.tar.xz
Add brief -help and -version support.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 0f850fc..63c1348 100644
--- a/eval.c
+++ b/eval.c
@@ -568,6 +568,10 @@ static int infer_fdlimit() {
* Evaluate the command line.
*/
int eval_cmdline(const struct cmdline *cmdline) {
+ if (!cmdline->expr) {
+ return 0;
+ }
+
int nopenfd = infer_fdlimit();
struct callback_args args = {