Commit 52b3a9fc authored by Celine Mercier's avatar Celine Mercier

C: taxonomy: fixed a segfault on linux when trying to fclose an unopened

file
parent ce686e95
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment