summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
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 = {