summaryrefslogtreecommitdiff
path: root/filter/filter.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-07-11 11:08:10 +0200
committerMaria Matejka <mq@ucw.cz>2022-07-11 11:08:10 +0200
commit2e5bfeb73ac25e236a24b6c1a88d0f2221ca303f (patch)
tree396657a62a5a63b0a304268bd011934f56d414ce /filter/filter.c
parentd429bc5c841a8e9d4c81786973edfa56d20a407e (diff)
parentcb339a30677901f2c248de08ff535cf0a9efab3d (diff)
Merge remote-tracking branch 'origin/master' into backport
Diffstat (limited to 'filter/filter.c')
-rw-r--r--filter/filter.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/filter/filter.c b/filter/filter.c
index 7004b96d..d8a58d0a 100644
--- a/filter/filter.c
+++ b/filter/filter.c
@@ -220,8 +220,7 @@ interpret(struct filter_state *fs, const struct f_line *line, struct f_val *val)
}
/* End of current line. Drop local variables before exiting. */
- fstk->vcnt -= curline.line->vars;
- fstk->vcnt -= curline.line->args;
+ fstk->vcnt = curline.ventry + curline.line->results;
fstk->ecnt--;
}