summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--filter/filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/filter.c b/filter/filter.c
index 35bd75e6..60e351f9 100644
--- a/filter/filter.c
+++ b/filter/filter.c
@@ -407,7 +407,7 @@ f_eval_buf(const struct f_line *expr, struct linpool *tmp_pool, buffer *buf)
{
struct f_val val;
enum filter_return fret = f_eval(expr, tmp_pool, &val);
- if (fret > F_RETURN)
+ if (fret <= F_RETURN)
val_format(&val, buf);
return fret;
}