]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smbd: Initialize ‘tm’ structure
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 20 Sep 2023 05:05:43 +0000 (17:05 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 27 Sep 2023 02:43:28 +0000 (02:43 +0000)
‘tm’ must be initialized prior to calling strptime().

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/smbd/smb2_query_directory.c

index 2017c03cae53d0e963bfd89272eb6d3ec96c96bc..0db09cafe67bf83af44019be0fbe23ad408b819a 100644 (file)
@@ -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;