mount-setup: fix segfault in mount_cgroup_controllers when using gcc9 compiler
authorWen Yang <wenyang@linux.alibaba.com>
Tue, 30 Jun 2020 20:45:33 +0000 (04:45 +0800)
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>
Mon, 2 Nov 2020 14:55:17 +0000 (15:55 +0100)
commit1c8d1c3bbdf8bdfb2ee4f85b9f559f54c6e4cac4
treebc60c40c249241c647f2a01b6186801fefc10374
parent9c0ed82f661a2296784970678746b0b4f130870e
mount-setup: fix segfault in mount_cgroup_controllers when using gcc9 compiler

According to the documentation:
https://gcc.gnu.org/gcc-9/porting_to.html#complit

The 'join_controllers' that relied on the extended lifetime needs
to be fixed, move the compound literals to the function scope it
need to accessible in.

Resolves: #1868877
src/core/mount-setup.c