diff options
author | msofer <msofer@noemail.net> | 2006-09-27 23:35:00 (GMT) |
---|---|---|
committer | msofer <msofer@noemail.net> | 2006-09-27 23:35:00 (GMT) |
commit | 2664950379d4e0707016cb0f685cf0802090af4c (patch) | |
tree | ee39b9892f7f31b268ddf1be96f7e575475f35d1 /generic/regc_nfa.c | |
parent | 4738fa88a07f4fb6773c3a75936b24e20cad5271 (diff) | |
download | tcl-2664950379d4e0707016cb0f685cf0802090af4c.zip tcl-2664950379d4e0707016cb0f685cf0802090af4c.tar.gz tcl-2664950379d4e0707016cb0f685cf0802090af4c.tar.bz2 |
* generic/regc_color.c (uncolorchain):
* generic/regc_nfa.c (freearc): changed tests and asserts to
equivalent formulation, designed to avoid an explicit comparison
to NULL and satisfy coverity that 6 and 9 are not bugs.
FossilOrigin-Name: 43314a2e1daee95ad3060b939f68f29500c266b6
Diffstat (limited to 'generic/regc_nfa.c')
-rw-r--r-- | generic/regc_nfa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/regc_nfa.c b/generic/regc_nfa.c index 12a016e..d5e7e01 100644 --- a/generic/regc_nfa.c +++ b/generic/regc_nfa.c @@ -409,10 +409,10 @@ freearc( if (a == victim) { /* simple case: first in chain */ to->ins = victim->inchain; } else { - for (; a != NULL && a->inchain != victim; a = a->inchain) { + for (; a->inchain != victim; a = a->inchain) { + assert(a->inchain != NULL); continue; } - assert(a != NULL); a->inchain = victim->inchain; } to->nins--; |