1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4:torture: Initialize ‘tm’ structure

‘tm’ must be initialized prior to calling strptime().

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-09-20 17:34:42 +12:00 committed by Andrew Bartlett
parent 9bd9b9bfd9
commit a2700cf685

View 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);