]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture: Initialize ‘tm’ structure
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 20 Sep 2023 05:34:42 +0000 (17:34 +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>
source4/torture/basic/base.c

index 602eb226d0b46add699edc55de6c9ba09747cf69..fc36e6b441dd75b08fdde7b0038d93da9ff1b4f5 100644 (file)
@@ -1943,7 +1943,7 @@ static bool torture_smb1_twrp_openroot(struct torture_context *tctx,
        const char *snapshot = NULL;
        const char *p = NULL;
        NTSTATUS status;
-       struct tm tm;
+       struct tm tm = {};
        bool ret = true;
 
        snapshot = torture_setting_string(tctx, "twrp_snapshot", NULL);