Skip to content

Commit f04e6e8

Browse files
committed
tests/api.c and tests/api/test_pkcs7.c: fixes for CFLAGS="-Og" --enable-all (PRB-single-flag.txt line 3).
1 parent 1297a85 commit f04e6e8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18879,7 +18879,7 @@ static int test_wolfSSL_d2i_and_i2d_PublicKey_ecc(void)
1887918879
const unsigned char* p;
1888018880
unsigned char *der = NULL;
1888118881
unsigned char *tmp = NULL;
18882-
int derLen;
18882+
int derLen = -1;
1888318883
unsigned char pub_buf[65];
1888418884
unsigned char pub_spki_buf[91];
1888518885
const int pub_len = 65;
@@ -18989,7 +18989,7 @@ static int test_wolfSSL_d2i_and_i2d_DSAparams(void)
1898918989
};
1899018990
int derInLen = sizeof(derIn);
1899118991
byte* derOut = NULL;
18992-
int derOutLen;
18992+
int derOutLen = -1;
1899318993
byte* p = derIn;
1899418994

1899518995
/* Check that params can be successfully decoded. */

tests/api/test_pkcs7.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3143,7 +3143,7 @@ int test_wc_PKCS7_GetEnvelopedDataKariRid(void)
31433143
byte rid[256];
31443144
byte cms[1024];
31453145
XFILE cmsFile = XBADFILE;
3146-
int ret;
3146+
int ret = -1;
31473147
word32 ridSz = sizeof(rid);
31483148
XFILE skiHexFile = XBADFILE;
31493149
byte skiHex[256];

0 commit comments

Comments
 (0)