From: Joseph Sutton Date: Wed, 20 Sep 2023 05:04:00 +0000 (+1200) Subject: lib:audit_logging: Initialize ‘tm’ structure X-Git-Tag: tevent-0.16.0~363 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f6083f59f0045c5c982e8e047d2ef81dbb8f01b;p=thirdparty%2Fsamba.git lib:audit_logging: Initialize ‘tm’ structure ‘tm’ must be initialized prior to calling strptime(). Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/lib/audit_logging/tests/audit_logging_test.c b/lib/audit_logging/tests/audit_logging_test.c index d41f9517c47..09238823399 100644 --- a/lib/audit_logging/tests/audit_logging_test.c +++ b/lib/audit_logging/tests/audit_logging_test.c @@ -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;