Browse Source

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

master
practicalswift 5 years ago
parent
commit
5aae5b5bb2
  1. 4
      src/tests.c

4
src/tests.c

@ -4924,7 +4924,9 @@ int main(int argc, char **argv) { @@ -4924,7 +4924,9 @@ int main(int argc, char **argv) {
seed16[6] ^= t >> 48;
seed16[7] ^= t >> 56;
}
fclose(frand);
if (frand) {
fclose(frand);
}
}
secp256k1_rand_seed(seed16);

Loading…
Cancel
Save