delta bug

git-svn-id: https://www.grenoble.prabi.fr/svn/LECASofts/ecoPCR/trunk@309 60f365c0-8329-0410-b2a4-ec073aeeaa1d
This commit is contained in:
2011-06-30 15:12:38 +00:00
parent f53cc6d500
commit ae528e48f4
3 changed files with 16 additions and 9 deletions
+6 -5
View File
@@ -10,10 +10,11 @@ int eco_is_taxid_included( ecotaxonomy_t *taxonomy,
taxon = eco_findtaxonbytaxid(taxonomy, taxid);
for (i=0; i < tab_len; i++)
if ( (taxon->taxid == restricted_taxid[i]) ||
(eco_isundertaxon(taxon, restricted_taxid[i])) )
return 1;
if (taxon)
for (i=0; i < tab_len; i++)
if ( (taxon->taxid == restricted_taxid[i]) ||
(eco_isundertaxon(taxon, restricted_taxid[i])) )
return 1;
return 0;
}
}