[evolution] Initialize all members of 'struct tm' in e_cert_populate()



commit a010fb2a40cb5a2fe129a0f307b2ce283c868780
Author: Milan Crha <mcrha redhat com>
Date:   Tue Feb 26 15:22:08 2019 +0100

    Initialize all members of 'struct tm' in e_cert_populate()

 src/smime/lib/e-cert.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/smime/lib/e-cert.c b/src/smime/lib/e-cert.c
index 56bb821088..9a27b0f750 100644
--- a/src/smime/lib/e-cert.c
+++ b/src/smime/lib/e-cert.c
@@ -222,6 +222,8 @@ e_cert_populate (ECert *cert)
                PRExplodedTime explodedTime;
                struct tm exploded_tm;
 
+               memset (&exploded_tm, 0, sizeof (struct tm));
+
                PR_ExplodeTime (
                        cert->priv->issued_on,
                        PR_LocalTimeParameters, &explodedTime);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]