Skip to content

Commit 40b5982

Browse files
committed
src/ssl_asn1.c: in wolfssl_asn1_time_to_tm(), initialize localTm with memset, not the zero initializer, for C++ compatibility.
1 parent 85e0bf3 commit 40b5982

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/ssl_asn1.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3653,7 +3653,9 @@ static int wolfssl_asn1_time_to_tm(const WOLFSSL_ASN1_TIME* asnTime,
36533653
int asn1TimeBufLen;
36543654
int i = 0;
36553655
#ifdef XMKTIME
3656-
struct tm localTm = {0};
3656+
struct tm localTm;
3657+
3658+
XMEMSET(&localTm, 0, sizeof localTm);
36573659
#endif
36583660

36593661
/* Get the string buffer - fixed array, can't fail. */

0 commit comments

Comments
 (0)