aboutsummaryrefslogtreecommitdiff
path: root/src/regexp_nfa.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-02-27 16:13:11 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-02-28 08:49:34 -0300
commit6eece5895e4f0c147ef21ebb4d170a54f8694182 (patch)
tree681674aa2f61f6044ab750e30ba41e7895005e1b /src/regexp_nfa.c
parentef6933bd609e4f353f54fef8897cda217b295e34 (diff)
downloadrneovim-6eece5895e4f0c147ef21ebb4d170a54f8694182.tar.gz
rneovim-6eece5895e4f0c147ef21ebb4d170a54f8694182.tar.bz2
rneovim-6eece5895e4f0c147ef21ebb4d170a54f8694182.zip
Fix a 'garbage value' warning found by Clang's static analyzer
- Initialize lists in paragraph_start() - Remove two dead stores
Diffstat (limited to 'src/regexp_nfa.c')
-rw-r--r--src/regexp_nfa.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c
index 902d46f825..3e4b74d2d2 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -524,7 +524,6 @@ static char_u *nfa_get_match_text(nfa_state_T *start)
ret = alloc(len);
if (ret != NULL) {
- len = 0;
p = start->out->out; /* skip first char, it goes into regstart */
s = ret;
while (p->c > 0) {