From: Joseph Sutton Date: Wed, 20 Sep 2023 05:04:58 +0000 (+1200) Subject: s3:lib: Initialize ‘tm’ structure X-Git-Tag: tevent-0.16.0~362 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=31c7d7cfb326faae949cb94263a9c3166352bf79;p=thirdparty%2Fsamba.git s3:lib: Initialize ‘tm’ structure ‘tm’ must be initialized prior to calling strptime(). Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source3/lib/util_path.c b/source3/lib/util_path.c index 9c9c6eb5807..a7d1a8b1328 100644 --- a/source3/lib/util_path.c +++ b/source3/lib/util_path.c @@ -215,7 +215,7 @@ static bool find_snapshot_token( { const char *start = NULL; const char *end = NULL; - struct tm tm; + struct tm tm = {}; time_t t; start = strstr_m(filename, "@GMT-");