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:
Felipe Oliveira Carvalho
2014-03-29 01:05:04 -03:00
committed by Thiago de Arruda
parent 7bdd1f1898
commit 0e998066b2
10 changed files with 39 additions and 11 deletions

View File

@@ -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;
}