1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-07 21:18:41 +03:00

automount: make sure we don't crash if there's an automount unit without mount unit

This commit is contained in:
Lennart Poettering 2010-09-06 01:04:59 +02:00
parent dacdf15367
commit 7573916f63

View File

@ -735,6 +735,9 @@ static bool automount_check_gc(Unit *u) {
assert(a);
if (!a->mount)
return false;
return UNIT_VTABLE(UNIT(a->mount))->check_gc(UNIT(a->mount));
}