Mercurial > vim
comparison src/regexp_nfa.c @ 16491:38a323a6fd18 v8.1.1249
patch 8.1.1249: compiler warning for uninitialized variable
commit https://github.com/vim/vim/commit/c6b1cc967f859c6e975d001e4304113db7190690
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 3 11:21:05 2019 +0200
patch 8.1.1249: compiler warning for uninitialized variable
Problem: Compiler warning for uninitialized variable.
Solution: Initialize it. (Christian Brabandt)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 03 May 2019 11:30:05 +0200 |
parents | cd5c83115ec6 |
children | 695d9ef00b03 |
comparison
equal
deleted
inserted
replaced
16490:4162ee8bcb1d | 16491:38a323a6fd18 |
---|---|
5508 * | 5508 * |
5509 * Run NFA to determine whether it matches rex.input. | 5509 * Run NFA to determine whether it matches rex.input. |
5510 * | 5510 * |
5511 * When "nfa_endp" is not NULL it is a required end-of-match position. | 5511 * When "nfa_endp" is not NULL it is a required end-of-match position. |
5512 * | 5512 * |
5513 * Return TRUE if there is a match, FALSE otherwise. | 5513 * Return TRUE if there is a match, FALSE if there is no match, |
5514 * NFA_TOO_EXPENSIVE if we end up with too many states. | |
5514 * When there is a match "submatch" contains the positions. | 5515 * When there is a match "submatch" contains the positions. |
5516 * | |
5515 * Note: Caller must ensure that: start != NULL. | 5517 * Note: Caller must ensure that: start != NULL. |
5516 */ | 5518 */ |
5517 static int | 5519 static int |
5518 nfa_regmatch( | 5520 nfa_regmatch( |
5519 nfa_regprog_T *prog, | 5521 nfa_regprog_T *prog, |
5520 nfa_state_T *start, | 5522 nfa_state_T *start, |
5521 regsubs_T *submatch, | 5523 regsubs_T *submatch, |
5522 regsubs_T *m) | 5524 regsubs_T *m) |
5523 { | 5525 { |
5524 int result; | 5526 int result = FALSE; |
5525 size_t size = 0; | 5527 size_t size = 0; |
5526 int flag = 0; | 5528 int flag = 0; |
5527 int go_to_nextline = FALSE; | 5529 int go_to_nextline = FALSE; |
5528 nfa_thread_T *t; | 5530 nfa_thread_T *t; |
5529 nfa_list_T list[2]; | 5531 nfa_list_T list[2]; |