aboutsummaryrefslogtreecommitdiff
path: root/src/regexp_nfa.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-03-29 01:05:04 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-31 07:31:47 -0300
commit0e998066b2533de3cf87ece1068839e60e128f1a (patch)
tree0dc09cd25ef39a59e6f9c1c41493e11bacea8f79 /src/regexp_nfa.c
parent7bdd1f1898c6c94326e4642d8f51f74cc14b5f9d (diff)
downloadrneovim-0e998066b2533de3cf87ece1068839e60e128f1a.tar.gz
rneovim-0e998066b2533de3cf87ece1068839e60e128f1a.tar.bz2
rneovim-0e998066b2533de3cf87ece1068839e60e128f1a.zip
xrealloc(): similar to xmalloc()
Replaced all calls to realloc by xrealloc. All `== NULL` tests can be removed and the code within `!= NULL` tests can be unwrapped.
Diffstat (limited to 'src/regexp_nfa.c')
-rw-r--r--src/regexp_nfa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c
index 74e2f61e76..bdcfa1890d 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -3963,7 +3963,7 @@ skip_add:
subs = &temp_subs;
}
- l->t = realloc(l->t, newlen * sizeof(nfa_thread_T));
+ l->t = xrealloc(l->t, newlen * sizeof(nfa_thread_T));
l->len = newlen;
}