diff options
author | vnugent <public@vaughnnugent.com> | 2024-11-03 12:44:22 -0500 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-11-03 12:44:22 -0500 |
commit | e0d30c1d8f407bfef05a9cc36398bb0894a96c39 (patch) | |
tree | fd2f467d907ab79e8d903defdf8241ffab7139b9 /tests | |
parent | b8a85bed14044c2d40b9cad3c19f878468e4f408 (diff) |
Once over and fix all valgrind warnings
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test.c b/tests/test.c index e8ce756..a1f5abe 100644 --- a/tests/test.c +++ b/tests/test.c @@ -289,10 +289,13 @@ static int TestPublicApiArgumentValidation() NCPublicKey pubKey; uint8_t hmacKeyOut[NC_HMAC_KEY_SIZE]; uint8_t nonce[NC_NIP44_IV_SIZE]; - + NCEncryptionArgs cryptoData; - PRINTL("TEST: Public API argument validation tests") + PRINTL("TEST: Public API argument validation tests"); + + /* Zero fill the structure to inialize */ + ZERO_FILL(&cryptoData, sizeof(cryptoData)); { TEST(NCEncryptionGetIvSize(NC_ENC_VERSION_NIP44), sizeof(nonce)); |