mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
src/ssl_asn1.c: in wolfssl_asn1_time_to_tm(), initialize localTm with memset, not the zero initializer, for C++ compatibility.
This commit is contained in:
@ -3653,7 +3653,9 @@ static int wolfssl_asn1_time_to_tm(const WOLFSSL_ASN1_TIME* asnTime,
|
|||||||
int asn1TimeBufLen;
|
int asn1TimeBufLen;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
#ifdef XMKTIME
|
#ifdef XMKTIME
|
||||||
struct tm localTm = {0};
|
struct tm localTm;
|
||||||
|
|
||||||
|
XMEMSET(&localTm, 0, sizeof localTm);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Get the string buffer - fixed array, can't fail. */
|
/* Get the string buffer - fixed array, can't fail. */
|
||||||
|
Reference in New Issue
Block a user