changeset 24379:8d5e4b50c2e1 v8.2.2730

patch 8.2.2730: Coverity complains about not restoring character Commit: https://github.com/vim/vim/commit/c9605f0595173bca0f158f2782de950ac6bed147 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 6 21:29:32 2021 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Tue, 06 Apr 2021 21:30:05 +0200
parents a64ba8b570d0
children bfe16ffe8ebf
files src/version.c src/vim9compile.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2730,
+/**/
     2729,
 /**/
     2728,
--- 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;