1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

manager: add one more assert()

This commit is contained in:
Lennart Poettering 2023-01-02 15:00:05 +01:00
parent a6edc20fa6
commit 7fa49280bc

View File

@ -809,6 +809,8 @@ static int manager_find_credentials_dirs(Manager *m) {
}
void manager_set_switching_root(Manager *m, bool switching_root) {
assert(m);
m->switching_root = MANAGER_IS_SYSTEM(m) && switching_root;
}