chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dacdf15
)
automount: make sure we don't crash if there's an automount unit without mount unit
author
Lennart Poettering
<lennart@poettering.net>
Sun, 5 Sep 2010 23:04:59 +0000
(
01:04
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Sun, 5 Sep 2010 23:05:38 +0000
(
01:05
+0200)
src/automount.c
patch
|
blob
|
history
diff --git
a/src/automount.c
b/src/automount.c
index 414816b6404c6afc6d651d40efc00892aa3f0d4c..f7bf7f32d400c4d06d87c5958453c1418c087752 100644
(file)
--- a/
src/automount.c
+++ b/
src/automount.c
@@
-735,6
+735,9
@@
static bool automount_check_gc(Unit *u) {
assert(a);
assert(a);
+ if (!a->mount)
+ return false;
+
return UNIT_VTABLE(UNIT(a->mount))->check_gc(UNIT(a->mount));
}
return UNIT_VTABLE(UNIT(a->mount))->check_gc(UNIT(a->mount));
}