git-svn-id: https://www.grenoble.prabi.fr/svn/LECASofts/ecoPCR/branches/refactoring@31 60f365c0-8329-0410-b2a4-ec073aeeaa1d
This commit is contained in:
@ -22,12 +22,11 @@ ecotxidx_t *read_taxonomyidx(const char *filename)
|
||||
index = (ecotxidx_t*) ECOMALLOC(sizeof(ecotxidx_t) + sizeof(ecotx_t) * (count-1),
|
||||
"Allocate taxonomy");
|
||||
|
||||
index->count=count;
|
||||
|
||||
for (i=0; i < count; i++)
|
||||
index->count=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;
|
||||
|
||||
}
|
||||
return index;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user