shutdown: don't compare pointers with 0
This commit is contained in:
parent
4534b32c73
commit
1a269c4ee3
|
@ -474,11 +474,11 @@ static int delete_dm(dev_t devnum) {
|
|||
}
|
||||
|
||||
static int delete_md(MountPoint *m) {
|
||||
|
||||
_cleanup_close_ int fd = -1;
|
||||
|
||||
assert(m);
|
||||
assert(major(m->devnum) != 0);
|
||||
assert(m->path != 0);
|
||||
assert(m->path);
|
||||
|
||||
fd = open(m->path, O_RDONLY|O_CLOEXEC|O_EXCL);
|
||||
if (fd < 0)
|
||||
|
|
Loading…
Reference in a new issue