mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +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:
parent
58bd2f525b
commit
2f6083f59f
@ -830,7 +830,7 @@ static void test_audit_get_timestamp(_UNUSED_ void **state)
|
|||||||
{
|
{
|
||||||
const char *t = NULL;
|
const char *t = NULL;
|
||||||
char *c;
|
char *c;
|
||||||
struct tm tm;
|
struct tm tm = {};
|
||||||
time_t before;
|
time_t before;
|
||||||
time_t after;
|
time_t after;
|
||||||
time_t actual;
|
time_t actual;
|
||||||
|
Loading…
Reference in New Issue
Block a user