Avoid calling fclose(...) with an invalid argument

This commit is contained in:
practicalswift 2018-01-12 11:18:25 +01:00
parent c95f6f1360
commit 5aae5b5bb2
1 changed files with 3 additions and 1 deletions

View File

@ -4924,8 +4924,10 @@ int main(int argc, char **argv) {
seed16[6] ^= t >> 48; seed16[6] ^= t >> 48;
seed16[7] ^= t >> 56; seed16[7] ^= t >> 56;
} }
if (frand) {
fclose(frand); fclose(frand);
} }
}
secp256k1_rand_seed(seed16); secp256k1_rand_seed(seed16);
printf("test count = %i\n", count); printf("test count = %i\n", count);