This commit is contained in:
2007-06-05 13:38:33 +00:00
parent 38030f2298
commit 8b455b0954

View File

@ -208,12 +208,13 @@ int eco_isundertaxon(ecotx_t *taxon,
ecotx_t *next_parent;
next_parent = taxon->parent;
while ( (other_taxid != next_parent->taxid) && (next_parent!=0) )
while ( (other_taxid != next_parent->taxid) &&
(strcmp(next_parent->name, "root")) )
{
next_parent = next_parent->parent;
}
if (other_taxid == next_parent->taxid)
return 1;
else