shutdown: don't compare pointers with 0

This commit is contained in:
Lennart Poettering 2020-09-22 11:21:19 +02:00
parent 4534b32c73
commit 1a269c4ee3

View file

@ -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)