aboutsummaryrefslogtreecommitdiff
path: root/tests/test.c
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-11-03 12:44:22 -0500
committerLibravatar vnugent <public@vaughnnugent.com>2024-11-03 12:44:22 -0500
commite0d30c1d8f407bfef05a9cc36398bb0894a96c39 (patch)
treefd2f467d907ab79e8d903defdf8241ffab7139b9 /tests/test.c
parentb8a85bed14044c2d40b9cad3c19f878468e4f408 (diff)
Once over and fix all valgrind warnings
Diffstat (limited to 'tests/test.c')
-rw-r--r--tests/test.c7
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));