mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 08:56:29 +00:00
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.
This commit is contained in:

committed by
Thiago de Arruda

parent
7bdd1f1898
commit
0e998066b2
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user