Merge #498: tests: Avoid calling fclose(...) with an invalid argument
5aae5b5 Avoid calling fclose(...) with an invalid argument (practicalswift) Pull request description: Avoid calling `fclose(...)` with an invalid argument. Tree-SHA512: f1a057b8c52089a3af1d9bfe97b751a4003b944d293147855eca452d1766c4ead5701d06f546153e654c9cb07b3fe2bcc4e28c8a54a27263d1e2434be123ca3b
This commit is contained in:
commit
7f9c1a1565
@ -4929,8 +4929,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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user