summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/eval.c b/eval.c
index 01da7a4..10379a3 100644
--- a/eval.c
+++ b/eval.c
@@ -402,9 +402,9 @@ static int infer_nopenfd() {
}
}
- // Account for std{in,out,err}
- if (ret > 3) {
- ret -= 3;
+ // Account for std{in,out,err}, and allow one free for the predicates
+ if (ret > 4) {
+ ret -= 4;
}
return ret;