audit_logging: Initialise event_server
authorAndrew Bartlett <abartlet@samba.org>
Mon, 25 Jun 2018 02:52:19 +0000 (14:52 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 26 Jun 2018 01:27:20 +0000 (03:27 +0200)
It is better if this is a known zero value to start, even if we check the errors
correctly.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
lib/audit_logging/audit_logging.c

index 3a27eb6..dda350c 100644 (file)
@@ -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;