From: Joseph Sutton Date: Wed, 20 Sep 2023 19:40:41 +0000 (+1200) Subject: s4:kdc: Initialize ‘tm’ structure X-Git-Tag: tevent-0.16.0~357 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdf0e1be35aef0f14a8e2988a5918e8d8d52da0a;p=thirdparty%2Fsamba.git s4:kdc: Initialize ‘tm’ structure ‘tm’ must be initialized prior to calling strptime(). Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/kdc/db-glue.c b/source4/kdc/db-glue.c index d421e6ead61..0295be5840f 100644 --- a/source4/kdc/db-glue.c +++ b/source4/kdc/db-glue.c @@ -135,7 +135,7 @@ static time_t ldb_msg_find_krb5time_ldap_time(struct ldb_message *msg, const cha { const char *tmp; const char *gentime; - struct tm tm; + struct tm tm = {}; gentime = ldb_msg_find_attr_as_string(msg, attr, NULL); if (!gentime)