mirror of https://github.com/wolfSSL/wolfssl.git
src/ssl_asn1.c: in wolfssl_asn1_time_to_tm(), initialize localTm with memset, not the zero initializer, for C++ compatibility.
parent
85e0bf337b
commit
40b598289f
|
@ -3653,7 +3653,9 @@ static int wolfssl_asn1_time_to_tm(const WOLFSSL_ASN1_TIME* asnTime,
|
|||
int asn1TimeBufLen;
|
||||
int i = 0;
|
||||
#ifdef XMKTIME
|
||||
struct tm localTm = {0};
|
||||
struct tm localTm;
|
||||
|
||||
XMEMSET(&localTm, 0, sizeof localTm);
|
||||
#endif
|
||||
|
||||
/* Get the string buffer - fixed array, can't fail. */
|
||||
|
|
Loading…
Reference in New Issue