1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2021-04-06 21:29:32 +02:00
parent 643ce6c0c6
commit c9605f0595
2 changed files with 3 additions and 0 deletions

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2730,
/**/ /**/
2729, 2729,
/**/ /**/

View File

@@ -6108,6 +6108,7 @@ compile_load_lhs(
{ {
// this should not happen // this should not happen
emsg(_(e_missbrac)); emsg(_(e_missbrac));
var_start[varlen] = c;
return FAIL; return FAIL;
} }
var_start[varlen] = c; var_start[varlen] = c;