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

lib:audit_logging: 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:00 +12:00 committed by Andrew Bartlett
parent 58bd2f525b
commit 2f6083f59f

View File

@ -830,7 +830,7 @@ static void test_audit_get_timestamp(_UNUSED_ void **state)
{
const char *t = NULL;
char *c;
struct tm tm;
struct tm tm = {};
time_t before;
time_t after;
time_t actual;