MOD: Corrected condition in getSon to handle the root of the taxonomy

git-svn-id: https://www.grenoble.prabi.fr/svn/LECASofts/ecoPCR/trunk@422 60f365c0-8329-0410-b2a4-ec073aeeaa1d
This commit is contained in:
Frédéric Boyer
2012-05-16 07:52:28 +00:00
parent e2fe83fcb7
commit 745d50cfa4
2 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -29,14 +29,14 @@ ecotxidx_t *read_taxonomyidx(const char *filename,const char *filename2)
index->count=count+count2;
fprintf(stderr,"Readind %d taxa...\n",count);
fprintf(stderr,"Reading %d taxa...\n",count);
for (i=0; i < count; i++){
readnext_ecotaxon(f,&(index->taxon[i]));
index->taxon[i].parent=index->taxon + (int32_t)index->taxon[i].parent;
}
if (count2>0)
fprintf(stderr,"Readind %d local taxa...\n",count2);
fprintf(stderr,"Reading %d local taxa...\n",count2);
else
fprintf(stderr,"No local taxon\n");