Skip to content

Commit

Permalink
Avoids a missing brace warning in schnorrsig/tests_impl.h on old comp…
Browse files Browse the repository at this point in the history
…ilers.

GCC 4.9.2, at least, emits "warning: missing braces around initializer"
 without this.
  • Loading branch information
gmaxwell committed May 2, 2021
1 parent 34388af commit 99e2d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/schnorrsig/tests_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void test_schnorrsig_api(void) {
unsigned char sk3[32];
unsigned char msg[32];
secp256k1_keypair keypairs[3];
secp256k1_keypair invalid_keypair = { 0 };
secp256k1_keypair invalid_keypair = {{ 0 }};
secp256k1_xonly_pubkey pk[3];
secp256k1_xonly_pubkey zero_pk;
unsigned char sig[64];
Expand Down

0 comments on commit 99e2d5b

Please sign in to comment.