C: taxonomy: fixed a segfault on linux when trying to fclose an unopened
file
This commit is contained in:
@ -571,13 +571,11 @@ static FILE* open_ecorecorddb(const char* file_name,
|
||||
{
|
||||
obi_set_errno(OBI_TAXONOMY_ERROR);
|
||||
obidebug(1, "\nCouldn't open a taxonomy file");
|
||||
fclose(f);
|
||||
return NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
*count = 0;
|
||||
fclose(f);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user