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:
parent
2f6083f59f
commit
31c7d7cfb3
@ -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-");
|
||||
|
Loading…
Reference in New Issue
Block a user