From: Joseph Sutton Date: Wed, 20 Sep 2023 05:05:43 +0000 (+1200) Subject: s3:smbd: Initialize ‘tm’ structure X-Git-Tag: tevent-0.16.0~358 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ce4e3729f08a0f5ed3439185bd756f4a080243f;p=thirdparty%2Fsamba.git s3:smbd: Initialize ‘tm’ structure ‘tm’ must be initialized prior to calling strptime(). Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source3/smbd/smb2_query_directory.c b/source3/smbd/smb2_query_directory.c index 2017c03cae5..0db09cafe67 100644 --- a/source3/smbd/smb2_query_directory.c +++ b/source3/smbd/smb2_query_directory.c @@ -268,7 +268,7 @@ static struct tevent_req *smbd_smb2_query_directory_send(TALLOC_CTX *mem_ctx, loadparm_s3_global_substitution(); NTSTATUS status; bool wcard_has_wild = false; - struct tm tm; + struct tm tm = {}; char *p; bool stop = false; bool ok;