# HG changeset patch # User Bram Moolenaar # Date 1617737405 -7200 # Node ID 8d5e4b50c2e18d60bbfc4ef90cd6256f3040364a # Parent a64ba8b570d0d282ff8a6c02655207383f6691ec patch 8.2.2730: Coverity complains about not restoring character Commit: https://github.com/vim/vim/commit/c9605f0595173bca0f158f2782de950ac6bed147 Author: Bram Moolenaar 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. diff --git a/src/version.c b/src/version.c --- 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, diff --git a/src/vim9compile.c b/src/vim9compile.c --- 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;