From: Joseph Sutton Date: Wed, 20 Sep 2023 05:34:42 +0000 (+1200) Subject: s4:torture: Initialize ‘tm’ structure X-Git-Tag: tevent-0.16.0~355 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a2700cf685f03d310de3c4d1f10611e8b8b2c107;p=thirdparty%2Fsamba.git s4:torture: Initialize ‘tm’ structure ‘tm’ must be initialized prior to calling strptime(). Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/torture/basic/base.c b/source4/torture/basic/base.c index 602eb226d0b..fc36e6b441d 100644 --- a/source4/torture/basic/base.c +++ b/source4/torture/basic/base.c @@ -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);