commit | c9605f0595173bca0f158f2782de950ac6bed147 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Apr 06 21:29:32 2021 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Apr 06 21:29:32 2021 +0200 |
tree | 2440cd741ab8f425c388877224780846205dc4f0 | |
parent | 643ce6c0c694667a2afd24bb39d8e9d36d94d7a9 [diff] [blame] |
patch 8.2.2730: Coverity complains about not restoring character Problem: Coverity complains about not restoring character. Solution: Also restore the character in case of an error.
diff --git a/src/vim9compile.c b/src/vim9compile.c index c9ca595..feb1838 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c
@@ -6108,6 +6108,7 @@ { // this should not happen emsg(_(e_missbrac)); + var_start[varlen] = c; return FAIL; } var_start[varlen] = c;