aboutsummaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2019-09-24 00:18:48 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2019-09-24 00:18:48 +0200
commitea0917bcba86d354f9c8516a4f114c38d04f890b (patch)
tree4527ad97ab5a2b44858358d94b64e1b37e8f783b /filter
parent9c79022153c6ef3a6c35b2db8be6b259104e67f3 (diff)
downloadbird-ea0917bcba86d354f9c8516a4f114c38d04f890b.tar.gz
Filter: Fix eval command
Diffstat (limited to 'filter')
-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;
}