summaryrefslogtreecommitdiffstats
path: root/src/core/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-08-22 18:36:23 +0200
committerLennart Poettering <lennart@poettering.net>2024-08-22 18:36:59 +0200
commit103018eceb7afcb66e7d6d5fd3ab665e682cdf51 (patch)
tree044aff72cc62f0c879884d99768753faa2aa4cfa /src/core/main.c
parentmain: generate warning when we cannot reset caps (diff)
downloadsystemd-103018eceb7afcb66e7d6d5fd3ab665e682cdf51.tar.xz
systemd-103018eceb7afcb66e7d6d5fd3ab665e682cdf51.zip
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.
Diffstat (limited to '')
-rw-r--r--src/core/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 6e1219eddb..14c124dc32 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;