summaryrefslogtreecommitdiff
path: root/src/vim9compile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-04-06 21:29:32 +0200
committerBram Moolenaar <Bram@vim.org>2021-04-06 21:29:32 +0200
commitc9605f0595173bca0f158f2782de950ac6bed147 (patch)
tree2440cd741ab8f425c388877224780846205dc4f0 /src/vim9compile.c
parent643ce6c0c694667a2afd24bb39d8e9d36d94d7a9 (diff)
downloadvim-git-c9605f0595173bca0f158f2782de950ac6bed147.tar.gz
patch 8.2.2730: Coverity complains about not restoring characterv8.2.2730
Problem: Coverity complains about not restoring character. Solution: Also restore the character in case of an error.
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r--src/vim9compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c
index c9ca5953f..feb1838b7 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -6108,6 +6108,7 @@ compile_load_lhs(
{
// this should not happen
emsg(_(e_missbrac));
+ var_start[varlen] = c;
return FAIL;
}
var_start[varlen] = c;