From: Joseph Sutton Date: Wed, 20 Sep 2023 05:05:21 +0000 (+1200) Subject: s3:passdb: Initialize ‘tm’ structure X-Git-Tag: tevent-0.16.0~360 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=67f3fead5fe591887068cd63002d1a0b4dd8dcfa;p=thirdparty%2Fsamba.git s3:passdb: Initialize ‘tm’ structure ‘tm’ must be initialized prior to calling strptime(). Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index ed682de47ea..160d624a835 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/passdb/pdb_ldap.c @@ -441,7 +441,7 @@ static int ldapsam_delete_entry(struct ldapsam_privates *priv, static time_t ldapsam_get_entry_timestamp( struct ldapsam_privates *ldap_state, LDAPMessage * entry) { char *temp; - struct tm tm; + struct tm tm = {}; temp = smbldap_talloc_single_attribute( smbldap_get_ldap(ldap_state->smbldap_state), entry,