1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 01:55:22 +03:00

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.
This commit is contained in:
Lennart Poettering 2024-08-22 18:36:23 +02:00
parent 88a26e1049
commit 103018eceb

View File

@ -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;