aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 3c50647848..3e6e183847 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -991,6 +991,7 @@ static int eval_expr_typval(const typval_T *expr, typval_T *argv,
return FAIL;
}
if (*s != NUL) { // check for trailing chars after expr
+ tv_clear(rettv);
emsgf(_(e_invexpr2), s);
return FAIL;
}