automount: make sure we don't crash if there's an automount unit without mount unit
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user