chiark / gitweb /
systemctl: warn if user enables unit with no installation instructions
[elogind.git] / src / automount.c
index 414816b6404c6afc6d651d40efc00892aa3f0d4c..f7bf7f32d400c4d06d87c5958453c1418c087752 100644 (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));
 }