forked from aniani/vim
patch 8.2.2171: valgrind warning for using uninitialized value
Problem: Valgrind warning for using uninitialized value. Solution: Do not use "startp" or "endp" unless there is a match.
This commit is contained in:
parent
f112f30a82
commit
61e07b2394
@ -7236,7 +7236,7 @@ theend:
|
|||||||
|| (end->lnum == start->lnum && end->col < start->col))
|
|| (end->lnum == start->lnum && end->col < start->col))
|
||||||
rex.reg_mmatch->endpos[0] = rex.reg_mmatch->startpos[0];
|
rex.reg_mmatch->endpos[0] = rex.reg_mmatch->startpos[0];
|
||||||
}
|
}
|
||||||
else
|
else if (retval > 0)
|
||||||
{
|
{
|
||||||
if (rex.reg_match->endp[0] < rex.reg_match->startp[0])
|
if (rex.reg_match->endp[0] < rex.reg_match->startp[0])
|
||||||
rex.reg_match->endp[0] = rex.reg_match->startp[0];
|
rex.reg_match->endp[0] = rex.reg_match->startp[0];
|
||||||
|
@ -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 */
|
||||||
|
/**/
|
||||||
|
2171,
|
||||||
/**/
|
/**/
|
||||||
2170,
|
2170,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user