From c9605f0595173bca0f158f2782de950ac6bed147 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 6 Apr 2021 21:29:32 +0200 Subject: [PATCH] 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. --- src/version.c | 2 ++ src/vim9compile.c | 1 + 2 files changed, 3 insertions(+) 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;