0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.1.1249: compiler warning for uninitialized variable

Problem:    Compiler warning for uninitialized variable.
Solution:   Initialize it. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2019-05-03 11:21:05 +02:00
parent 92fd599e0d
commit c6b1cc967f
2 changed files with 6 additions and 2 deletions

View File

@@ -5510,8 +5510,10 @@ nfa_did_time_out()
* *
* When "nfa_endp" is not NULL it is a required end-of-match position. * When "nfa_endp" is not NULL it is a required end-of-match position.
* *
* Return TRUE if there is a match, FALSE otherwise. * Return TRUE if there is a match, FALSE if there is no match,
* NFA_TOO_EXPENSIVE if we end up with too many states.
* When there is a match "submatch" contains the positions. * When there is a match "submatch" contains the positions.
*
* Note: Caller must ensure that: start != NULL. * Note: Caller must ensure that: start != NULL.
*/ */
static int static int
@@ -5521,7 +5523,7 @@ nfa_regmatch(
regsubs_T *submatch, regsubs_T *submatch,
regsubs_T *m) regsubs_T *m)
{ {
int result; int result = FALSE;
size_t size = 0; size_t size = 0;
int flag = 0; int flag = 0;
int go_to_nextline = FALSE; int go_to_nextline = FALSE;

View File

@@ -767,6 +767,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 */
/**/
1249,
/**/ /**/
1248, 1248,
/**/ /**/