From dad73e0b681cef247c83be5e2d6165922b2fb545 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 25 Jun 2018 14:52:19 +1200 Subject: audit_logging: Initialise event_server It is better if this is a known zero value to start, even if we check the errors correctly. Signed-off-by: Andrew Bartlett Reviewed-by: Gary Lockyer --- lib/audit_logging/audit_logging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/audit_logging/audit_logging.c b/lib/audit_logging/audit_logging.c index 3a27eb6105f..dda350cd144 100644 --- a/lib/audit_logging/audit_logging.c +++ b/lib/audit_logging/audit_logging.c @@ -230,7 +230,7 @@ void audit_message_send( uint32_t message_type, struct json_object *message) { - struct server_id event_server; + struct server_id event_server = {}; NTSTATUS status; const char *message_string = NULL; -- cgit v1.2.1