From: Lennart Poettering Date: Thu, 22 Aug 2024 16:36:23 +0000 (+0200) Subject: main: make sure the ambient caps set is valid in case we fail to read it X-Git-Tag: v257-rc1~645^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F34092%2Fhead;p=thirdparty%2Fsystemd.git 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. --- 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;