Skip to content

Commit

Permalink
Avoid calling fclose(...) with an invalid argument
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalswift committed Jan 12, 2018
1 parent c95f6f1 commit 5aae5b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5aae5b5

Please sign in to comment.