From 103018eceb7afcb66e7d6d5fd3ab665e682cdf51 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 22 Aug 2024 18:36:23 +0200 Subject: [PATCH] main: make sure the ambient caps set is valid in case we fail to read it We ignore failures when reading this after all. Hence we better leave the memory properly initialized. --- src/core/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/main.c b/src/core/main.c index 6e1219eddb4..14c124dc32c 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -3013,7 +3013,7 @@ int main(int argc, char *argv[]) { usec_t before_startup, after_startup; static char systemd[] = "systemd"; const char *error_message = NULL; - uint64_t saved_ambient_set; + uint64_t saved_ambient_set = 0; int r, retval = EXIT_FAILURE; Manager *m = NULL; FDSet *fds = NULL;