From: Bram Moolenaar Date: Tue, 6 Apr 2021 19:29:32 +0000 (+0200) Subject: patch 8.2.2730: Coverity complains about not restoring character X-Git-Tag: v8.2.2730 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9605f0595173bca0f158f2782de950ac6bed147;p=thirdparty%2Fvim.git 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 index 8d44824a19..5850872fbf 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2730, /**/ 2729, /**/ diff --git a/src/vim9compile.c b/src/vim9compile.c index c9ca5953fc..feb1838b7b 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;