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

s3:lib: 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:04:58 +12:00 committed by Andrew Bartlett
parent 2f6083f59f
commit 31c7d7cfb3

View File

@ -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-");