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:05:38 +02:00
parent dacdf15367
commit 7573916f63
+3
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));
}